iOS Question Silent push notifications not working

Yuri Cinesi

Active Member
Licensed User
My iOS app is not recieving any push notifications whilst in the background, but it does recieve them in the foreground.
The iPhone is running iOS 10.3.1 so it shouldn't be the iOS 11 issue where they're only delivered sometimes.

The app isn't being force killed, I'm simply exiting it by pressing the home button.
Obviously compiled in release mode and with the UIBackgroundModes line. Any ideas?

I'm using releaselogger to check wheter the remotenotification event is raised or not, and the code for the sending app is the same as the one in the push notifications tutorial (modified as written in the silent push notifications one)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm using releaselogger to check wheter the remotenotification event is raised or not
Don't. It can cause the process to crash when it starts from the background.

Show a local notification and save the state in a file that you can later check.

Silent notifications feature works in all versions of iOS. However not all messages are received. I don't remember it being related to any specific version.
 
Upvote 0
Top