Migrating to v6.4
Android 13 (API 33) Permissions
With Android 13 comes a new runtime user permission required to present a user with notifications.
If you do not update your users will be presented with the permission notification on launch of your application.
Authorisation process follows exactly the same code you have used for iOS and from a developer perspective no changes are needed, except that you need to handle a SHOULD_EXPLAIN
case for Android, similar to other permissions.
See the documentation on requesting authorisation for more information.
- APM
- Manual
If you are using apm
all you need to do is update to the latest build and regenerate your application descriptor. apm
will handle the rest.
apm update
apm generate app-descriptor src/Main-app.xml
If you are manually managing your application descriptor (and manifest additions) then you will be required to make some additions to your manifest. Firstly the permission:
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
And an additional activity inside the application tag to be able to correctly request the permission:
<application ... >
<activity android:name="com.distriqt.extension.notifications.permissions.AuthorisationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="false" />
</application>