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

Setting badge count on iOS causes notifications to stop #154

Open
ozzy1873 opened this issue Feb 15, 2018 · 0 comments
Open

Setting badge count on iOS causes notifications to stop #154

ozzy1873 opened this issue Feb 15, 2018 · 0 comments

Comments

@ozzy1873
Copy link

Setting badge count on iOS causes notifications to stop. I can reproduce this quickly with the following steps:

  1. Restart the phone
  2. Run the app then put it in background
  3. Send some notifications that increment the badge count. Note that the notification is displayed and the badge count increments as expected.
  4. Open the app and send some more notifications, but do not increment the badge count by leaving iOSOptions null. Note that notifications are displayed as expected.
  5. Background the app and send some more notifications. Note that notifications no longer appear and the badge is not incremented.
  6. Open the app and one previously sent notification will appear.
  7. If this does not repro the first time, repeat starting with Step 2.

This error state will remain until the phone is restarted. Force quitting the app does not clear the error state. My app sets UIApplication.SharedApplication.ApplicationIconBadgeNumber=0 in AppDelegate.OnActivated. Also, the notification I am sending does not set the "alert" field and sets content-available =1.

More info:
Once in the error state, if I leave the app in the background after Step 5 for about 7 minutes, one notification will display and increment the badge count. Send another notification at this point and it will not display for another 7 minutes.

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