iOS Question Silent push notifications not working

Discussion in 'iOS Questions' started by Yuri Cinesi, Dec 27, 2018.

  1. Yuri Cinesi

    Yuri Cinesi 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)
  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice