I am using local notifications in my app.
Now that iOS 11 is out there they are not working anymore. I haven't seen anything that could cause this in the release docs, does anyone know what could be causing this?
I know it's deprecated but i see no reason why it shouldn't just work anyway.
Thanks in advance
You can fix an iPhone that's not getting notifications by restarting it or making sure notifications are turned on. You should also make sure your iPhone is connected to the internet so apps can receive notifications. If all else fails, you should try resetting the iPhone — just make sure to back it up first.
Show recent notifications on the Lock ScreenGo to Settings > Face ID & Passcode (on an iPhone with Face ID) or Touch ID & Passcode (on other iPhone models). Enter your passcode. Scroll down and turn on Notification Center (below Allow Access When Locked).
Cause of Notifications Not Showing up on AndroidDo Not Disturb or Airplane Mode is on. Either system or app notifications are disabled. Power or data settings are preventing apps from retrieving notification alerts. Outdated apps or OS software can cause apps to freeze or crash and not deliver notifications.
Local notifications reach users whether your app is running in the foreground or the background and require no external infrastructure to send, which is why they are aptly termed “local.” These notifications simply require that a user's device is on in order to be received.
It seems there is a bug in iOS11. I can see if I schedule more than the 64 allowed notifications it ignores all the notifications I schedule.
The docs state the system keeps the soonest firing 64 notifications and discards the rest. On iOS11 it just discards them all...
So the fix in my case was to make dead-sure not to schedule more than 64 notifications.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With