Skip to content

Notification not showing when app is in background(when app is not running) #208

@Falu-G

Description

@Falu-G

Setup:
Nativescript Angular (7.0.11)
Angular (11.0.2)

@EddyVerbruggen , Kindly assist, this is what I have on the schedule method

LocalNotifications.schedule(
[{
id: 5,
thumbnail: true,
title: 'Richard wants your input',
body: '"Hey man, what do you think of the new design?" (swipe down to reply, or tap to open the app)',
forceShowWhenInForeground: true,
sound: "notify",
ongoing: true,
notificationLed: true,
interval:"minute",
channel: 'My Channel',
badge: 1,
at: new Date(new Date().getTime() + 10 * 1000),
actions: [
{
id: "input-richard",
type: "input",
title: "Tap here to reply",
placeholder: "Type to reply..",
submitLabel: "Reply",
launch: true,
editable: true,
// choices: ["Red", "Yellow", "Green"] // TODO Android only, but yet to see it in action
}
]
}])
.then(() => {
alert({
title: "Notification scheduled",
message: "ID: 5",
okButtonText: "OK, thanks"
});
})
.catch(error => console.log("doScheduleId5WithInput error: " + error));
}

Thanks in anticipation of your feedback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions