app state not showing up correctly when tapping on notification.
See original GitHub issueI am using following code to schedule notifications on android.
cordova.plugins.notification.local.schedule({
id: someId, // A unique id of the notifiction
text: "Hello.", // The message that is displayed
title: "Hello "
}, function() {
console.log('Notification generated');
});
What i want is that when a user taps on a notification i need to know if the app is in foreground state or in background. There is a state property for that which we can use in the callback of click event but the problem for me is that the state always returns background even when the app is open and not even minimized while tapping notification.
I use latest version of the plugin which is as of right now 0.8.1
Any help ?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
App Missing from Settings -> Notifications list - Apple Developer
Hi. We are receiving myriad complaints from members that our app is now missing from Settings -> Notifications, and so our members cannot...
Read more >Android Notifications Not Showing Up? 10 Fixes You Can Try
Not seeing notifications show up on your Android phone? Try these fixes to get Android notifications working again.
Read more >Notifications Not Shown - Mobile Push
Common reasons why Mobile Push notifications are not showing on your device. ... An app can be placed in this state in the...
Read more >Properly start Activity from Notification regardless of app state
Creating the Notification This works fine while the app is running; the registered child Activities receives the broadcast and we can do what ......
Read more >NotificationResponseReceivedLi...
When trying out my app, the expo notification service works fine when an app is in the foreground or background, but does not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ThorvaldAagaard It will be included in 0.9-beta.1
Is this included in v0.9-beta?