question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

app state not showing up correctly when tapping on notification.

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
katzercommented, Nov 7, 2017

@ThorvaldAagaard It will be included in 0.9-beta.1

0reactions
ThorvaldAagaardcommented, Nov 6, 2017

Is this included in v0.9-beta?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found