-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media controls not shown on Android API level 33+ #7
Comments
@ingageco Any ideas on this? The notification is completely missing from API 33/34 builds (Android 13+). The background service however appears to be working, because the music is not interrupted when e.g. locking the device (tested on emulator). |
@NorthFred I've got to go through the Capacitor docs and see what they say about these new permissions. |
@NorthFred Just browsing the cordova version and reading some of the Android 13 docs, it seems that media playback is no longer considered a notification. therefore, registering it in the old method requires notification permissions, but registering it in the new way does not. i am a little confused on how this can be backwards compatible, and im hoping this doesn't mean i have to do a lot of check "if < api level 33", etc. normally i wouldn't complain, but remember, i'm not a java developer. |
@NorthFred please test the android-13-style branch and let me know what is working/isnt. it catches most of the differences up that exist between this and the cordova version. |
@ingageco Great! I'll have a look this evening! |
When targeting and compiling the app with Android SDK version 33 (Android 13), the Media Controls are no longer shown for the app. The emulator does not show error messages related to this.
In contrast, when targeting the app to SDK 32, but compiling with SDK version 33, a confirmation dialog is shown "Allow xAPPx to send you notifications?" (see screenshot) when the app wants to show the Media Controls. When allowing this, the Media Controls are shown. (Note that there is also a "Notifications" setting under App info, where these can be switched on or off).
When targeting and compiling with Android SDK 33, there is no such option to enable the Notifications. They are disabled by default, hence resulting in the Media Controls not being shown on Android 14.
Note that by end of August 2023, new apps and app updates will require to target SDK API level 33.
The text was updated successfully, but these errors were encountered: