Symptom
When an Android application is targeting API Level 31, the Nexmo Client SDK returns null and fails to initialize.
Applies To
- Android Client SDK
Resolution
For Android on API Level 31 and above, the READ_PHONE_STATE is required. You need to have the READ_PHONE_STATE permission and you need to directly request the permission from the user. It is tagged as Protection level: dangerous which is similar to the permission requested for RECORD_AUDIO.
Additional Information
Articles in this section
- Session failed due to a timeout expiration
- Unable to initialize Client SDK on Android App API Level 31
- User:Error:Not-Found Username Doesn’t Exist When Logging in or Connecting Calls to an App User
- Why do I receive an answered event when I start an outbound call?
- Outbound In-App Voice Calls Fail to Complete
- Calls to an App User Don’t Time Out