Push notifications are not reliable. Apple Push Notification Server does not guarantee the delivery of the notification.
We have an application, in which we present a web view, in which there is a button, that should trigger a request from the client to the server. But as the button is in the web page (presented in the webview), the server sends us a push notification asking us to start sending the request. This is difficult in iOS, because, any notification should be accepted by the user to be called upon, and anyway, push notification can not be always relied upon.
One Alternative to this is to keep polling the server asking if i should trigger the request. But this will work only when app is running, and will drain a lot of battery.
Another alternative is creating a custom URL scheme. But I am not sure how to use that, and if that will work for android as well. Can any one explain on how we can use URL scheme to achieve our goal?