11-13-2013 04:12 AM
int the documentation I have read this:
"Creates a push channel for the given application. Once a channel is created, it will survive application restarts and therefore does not necessarily need to be called on every application start up.
However, for a consumer application, since it is possible for the public/BIS PPG to destroy a channel under certain circumstances it may be advisable to periodicially re-create the channel (e.g. once a month).
A successful create must have been done before calling this function.
This function should be called in order for an application to be able to start receiving pushes. If adestroyChannel call is then made, no pushes will be able to be received until a createChannelcall is made again."
Does this also apply for enterprise? Do I have to recreate the push channel?
Solved! Go to Solution.
11-13-2013 01:05 PM
11-14-2013 02:04 AM
thanks for the answer. What is the recommended way of recreating the push channel?
My enterprise app might not be used by its users for over a month, but it still needs to be updated with the most recent data from server. its very important. Data might only change once a year.
I was thinking that I could send out a push message every month to make sure the device has a open channel
11-14-2013 12:43 PM
To recreate a channel, you simply need to call the createChannel API once more:
Anytime that is called, the channel is recreated and the new one is used.
The process you describe sounds solid.