ios - Is it possible to run Quickblox SDK in the background mode? -


I want to prefetch new incoming messages when push notifications come in to improve user experience

< P> Apple is called background mode (UIBackgroundModes: Remote-Notification) We need to use NSURLSession class to request network.

Is it possible to use QB SDK "like" or I have to write my own cover for QB's REST API

Did you try to make any QB request in the background?

All QB requests are asynchronous so this may be a case

Otherwise, QB provides access to session session tokens

  [QBBaseModule sharedModule ] .token  

so that you can use it in another way to make requests, eg

Controlboxes in Cubes are Content-Available Supports key.

1-Content-Available Property Remote Notification Act When a Silent Notification Receives a Silent Notice, IOO raises your app in the background so that you can get new data from your server Or can process background information processing. Users are not told about new or changed information that results from a silent notification, but next time they open your app, they can know about it.

So it is up to the developer that the content-available key, you can request some data from the server or do nothing.

A special representative Application: didReiveiveRemoteNotification: fetchCompletionHandler: Content will be called when available -


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -