I need to do it on a chat app to notice the client that there is new data to fetch from the server.
I know that technically it is possible with an empty payload (at least on ios 5 device it worked), but can Apple see it as abuse of service or is it OK to do it?
And is it technically possible on ios 4 device?
Yes, increment only badge number, dont send sound and alert, So, there will be one badge on the App icon.
So, here unknowingly the badge number will be incremented to show that something has been recieved when user watches the app icon.
But your device won't recive alert or empty payload and won't recieve sound also because you asked for “silent” push notification on iPhone
and while configuring in AppDelegate, configure only badges
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge];
Hope this will be helpful for you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With