skip to Main Content

I have a testing app running iOS 17 Beta. And I am using a script using the following library: https://github.com/kreait/firebase-php. It works fine on iOS 16, that is, a single notification. However it sends around 11 push notifications on iOS 17 Beta.Is there anyone else having this issue? I also reported a bug on Firebase, but they are not replying. Thanks.

I tried sending notifications with the same code for IOS 16 and iOS 17 Beta

Stpes to reproduce:

  1. Install iOS 17 Beta from Apple Beta downloads on an iPhone (simulators don’t handle push notifs)
  2. You need to have a test app installed on the above iPhone. Xcode 15 Beta will allow you to build and run the app on the iPhone above.
  3. You need to have an app on Firebase dashboard with FCM enabled. Link the iOS app and the Firebase app
  4. On the php script, replace all the data for the device and FCM
  5. Run it. Doesn’t matter if app is on the foreground or the background
  6. A/B test it with another phone running other previous iOS version

2

Answers


  1. Chosen as BEST ANSWER

    On the current latest iOS 17 Beta 7, we have fixed the issue as follows: Remove the 'id':

            'headers' => [
                'apns-priority' => ,
            ],
            'payload' => [
                'aps' =>
                    array_merge(
                        [
                            'alert' => ,
                            'sound' => ,
                        ],
                        [
                            'id' => // Comment out this parameter 
                            'send_date' => ,
                        ],
                        $this->getPayload()
                    ),
            ],
    

    We have also tested on pre iOS 17 and also works.


  2. Just rename "id" to "somethingother" in app and your PushService.
    That worked for me. Apple Mods blocked this answer in their Dev-Forum two times :/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search