Downstream Messaging to App w/o Push Notification Permission?
Is there any way for an application server to send a message to an app without having push notification permission on? Specifically, I only need this to work while the app is active.
For context, I am updating a legacy app that used to rely on push notifications to transmit a piece of data from our app server to the client. We relied on push notifications instead of just requesting the data via http to take advantage of the fact that receiving a downstream message would be much more difficult to spoof with an unauthorized device (e.g. a computer terminal).
Fast forward a few years to today when I had to update the app for latest iOS compatibility, the app got rejected from the App Store because it relies on the user accepting push notifications (i.e. push notifications must be optional), a criterion that either didn't exist or wasn't enforced the first few times we successfully published the app.
I was very hopeful about Google Cloud Messaging for iOS because I know that when the app is active, it does not send the message via APNS. However, all the docs I read seem to indicate that even if you plan on the app receiving messages when active only, you still have to register using an APNS device token, which still requires that the user be shown the option to refuse them.
I realize that relying on push notifications was probably not ideal for various reasons. However, I'm urged to explore similar downstream messaging methods to avoid requiring an app-server overhaul. I'm not exactly sure how GCM does downstream messaging, but something like that would be a perfect analogue to what is going on now, so I'm hoping there exist solutions for active-app downstream messaging to minimize dev time. I suspect there are other apps out there that rely on downstream messaging (rather than, say, polling), so I'm hoping something is out there that will work for me.
Any thoughts or related experiences?
Posted Dec 17, 2015, 6:49 AM UTC