Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Falu-G opened this issue Jul 21, 2021 · 0 comments
Open

Comments

@Falu-G
Copy link

Falu-G commented Jul 21, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant