You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve messages background fetch so new messages are available and visible any time you enter the app from background as any other chat app in the market
Base branch: develop
Requirements
Improves messages background fetch while in background
Gets new messages while in background to have them available to be shown immediately when entering the app from background
Acceptance Criteria
Reduce messages load time to ~0 when entering the app from background
Improves fetching time and consistency on any way
References and suggestions
SphinxOnionManager.swift - func reconnectToServer: every time app becomes active the reconnectToServer logic will be called. App will connect to MQTT and onConnected callback app will publish to MQTT and will get new messages from it.
didReceiveRemoteNotification method on AppDelegate is called every time a push is received (since push notifications includes content-available: 1 param). This method triggers a connection to MQTT and a fetch of new messages
In addition a BGTaskScheduler is registered and scheduled every 15 minutes in didFinishLaunchingWithOptions which also triggers a new messages fetch.
The text was updated successfully, but these errors were encountered:
Improve messages background fetch so new messages are available and visible any time you enter the app from background as any other chat app in the market
Base branch: develop
Requirements
Acceptance Criteria
References and suggestions
SphinxOnionManager.swift - func reconnectToServer
: every time app becomes active thereconnectToServer
logic will be called. App will connect to MQTT andonConnected
callback app will publish to MQTT and will get new messages from it.didReceiveRemoteNotification
method onAppDelegate
is called every time a push is received (since push notifications includescontent-available: 1
param). This method triggers a connection to MQTT and a fetch of new messagesBGTaskScheduler
is registered and scheduled every 15 minutes indidFinishLaunchingWithOptions
which also triggers a new messages fetch.The text was updated successfully, but these errors were encountered: