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:
- Install iOS 17 Beta from Apple Beta downloads on an iPhone (simulators don’t handle push notifs)
- 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.
- You need to have an app on Firebase dashboard with FCM enabled. Link the iOS app and the Firebase app
- On the php script, replace all the data for the device and FCM
- Run it. Doesn’t matter if app is on the foreground or the background
- A/B test it with another phone running other previous iOS version
2
Answers
On the current latest iOS 17 Beta 7, we have fixed the issue as follows: Remove the 'id':
We have also tested on pre iOS 17 and also works.
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 :/