iOS Question APN Silent notifications

Discussion in 'iOS Questions' started by fbritop, Apr 20, 2015.

  1. fbritop

    fbritop Active Member Licensed User

    Hi there,
    We use APN notifications in order to execute certains commands on our app.

    The problem is when a notification is received, and the app is in background, then the top screen notificactions, displays with the message (a JSON string).

    How can we tell iOS that all notifications should not be published to the user?

    I have tried with no luck to use:
    #PlistExtra:<key>NSUserNotificationAlertStyle</key><string>none</string>

    Thanks
    FBP
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The main problem is that your app will not start when the notification arrives (if it is not already running). There is support in iOS for silent notifications however currently it is not possible to use them with B4i. It will most probably be supported in the next version.
     
  3. fbritop

    fbritop Active Member Licensed User

    Yes, I understand that it does not work the same way that android does, but there is no need to call the app when the notification arrives, it is just a matter of not displaying any info to the user, as it is a non user readable content (json string)

    Thanks anyway, will wait for next version. Is there an ETA for next version?

    FBP
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    If the app is not started (in background mode) then you will not be able to do anything with it.

    Will take sometime as the next version includes a major rewrite to the IDE. I expect a beta version to be released near the end of the next month (though it can take longer).
     
  5. fbritop

    fbritop Active Member Licensed User

    Hi Erel,
    Just received an Email with Beta v2.0. Are there any news regarding silent notifications?

    Thanks
    FBP
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Sorry but this feature was not implement in v2.0. It will be implemented in the future.
     
Loading...
  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