Open rikvdbrule opened 6 years ago
Hi @rikvdbrule @buh, if the app wants to fetch incoming call in background mode, we recommend use Phone.register/deregister. Because of WebSocket URL probably expired during the disconnected time. When calling the API register(), SDK will update the WebSocket URL first and then open a new WebSocket. Call the deregister() to disconnect the WebSocket after background task end.
To enable incoming calls when the application is in the background and smooth CallKit integration, we made some changes within the SparkSDK itself. Our use case is the following:
onIncomingCallInBackground
notification through theNotificationCenter
from within the appWe would like to know if either this implementation could be officially supported (by merging this PR or a modified version of it into the main repository), or whether there is a different flow for background calls that we should follow.