Android Developer Notes
Android 12 (API 31) and higher
When building an application with the Cloudonix Android SDK, that target API 31 (Android 12) or higher, there are some API requirements that must be satisfied and can't be included in the Cloudonix Android SDK due to backward compatibility. To satisfy these requirements, you'd need to add the following code to your application's AndroidManifest.xml
file, inside the <application>
tag (preferably at the bottom of it):
<receiver android:name="net.greenfieldtech.cloudonixsdk.utils.managers.SDKWrapperBroadcastsReceiver" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.NOTIFY"/>
</intent-filter>
</receiver>
<receiver android:name="net.greenfieldtech.cloudonixsdk.utils.managers.SipAlarmTimer" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.NOTIFY"/>
</intent-filter>
</receiver>
<receiver android:name="net.greenfieldtech.cloudonixsdk.service.VolumeLevelReceiver" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON"/>
</intent-filter>
</receiver>
<service android:name="net.greenfieldtech.cloudonixsdk.service.VoipService" android:exported="false" android:foregroundServiceType="phoneCall">
<intent-filter>
<action android:name="net.greenfieldtech.cloudonixsdk.INITIALIZE"/>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</service>