Best Practices Guide - Mobile SDKs
- Avoid using deprecated methods or be aware of any such warnings. These methods might get removed in future releases and the code may raise an error. For example, NoMethodError. Sunset timelines for deprecated methods will be communicated via email with due notice.
For Incoming calls in Android, use the deviceToken while logging in to get push notifications. Avoid using the background service to observe for incoming calls.
For Incoming calls in iOS, integrate the PushKit with the app. Plivo iOS SDK provides APIs for PushKit integration.
- Make sure you always reset your endpoint when logging out. This will delete all the allocated memory resources at the SDK level. For more information, see Resetting Your Endpoint in iOS and Android.
- Make sure you always go through changelogs before upgrading the SDK version. You can find the changelogs at iOS changelog and Android changelog.
- Make sure you always protect your account with Voice dialing Geographic permissions.