General questions about Restcomm SDK for iOS

I am running an application using Restroom and have a few questions about the iOS SDK.

I read the documentation here http://documentation.telestax.com/restcomm-ios-sdk/doc/html/Classes/RCDevice.html#//api/name/listen

I checked this also: https://github.com/RestComm/restcomm-ios-sdk

  • I can see that the RCDevice class has a listener method and an unlisten method. If I want the device to always be available to receive calls, should I always use the listen method? If so, would it really be terrible for the battery?

  • How can I make sure the app is always running on the device so it can always receive calls? I am pretty sure iOS 10 will stop background connections if the app is not running in the foreground.

  • Is there a way to wake up the app or open the app in case of an incoming call? Can I use push notifications or something similar to wake / open an app?

+3


source to share


1 answer


I already answered this question on the Restcomm forum, but let me also answer here for better community visibility:

  • Yes, as soon as you call unlisten (), you will no longer be registered and therefore will not receive any incoming events.

  • Ok, so this is platform dependent. For Android, since the SDK is wrapped in an Android service, even when the app comes to the fore, the SDK keeps running and you can receive events (we still need to check for some updates on Android O, though for that matter). We haven't implemented this for iOS yet, so once you leave the foreground you won't be able to receive any events :( However, the plan is to move to Push Notifications functionality soon on both platforms.

  • Please check (2). Also, without Push Notifications, we planned to support this with https://github.com/RestComm/restcomm-ios-sdk/issues/153 , but this is not ready yet.



Best regards, Antonis Tsakiridis

0


source







All Articles