The issue is that you will have to define broadcast receiver type while registering it, if you target API 34. Context.RECEIVER_NOT_EXPORTED Context.RECEIVER_EXPORTED
For example:
if (Build.VERSION.SDK_INT >= 34) {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"), Context.RECEIVER_NOT_EXPORTED);
} else {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"));
}
so currently, the notification extension is not working.
i have confirmed it by looking at the log, which autogenerated by my phone's system. Also trying to remove the extension from my build. And indeed it was the problem.
the error i meant was the app is force closing.
below are the logs (sorry for the screenshot, i can't copy the text.)
wooooooohoooooo thank you so much for your work, tested work on poco x6 with Android 14, the background process works as well though i don't know why it keeps popping the notification, i already close it in the recent but still running..
no worries though..
Hi,
I have a new error on Android 14 :
" Runtime Error
appinventor.ai_melvinlebailly22.FSCO_6: Targeting (U+ (version 34 and above) disallows creating or retrieving a Pendinglntent with FLAG_MUTABLE, an implicit Intent within and without FLAG_NO_CREATE and FLAG_ALLOW_UNSAFE_IMPLICITE_INTENT for security reasons. To retrieve an already existing Pendinglntent, use FLAG_NO_CREATE however, to create a new Pendinglntent with an implicit Intent use FLAG_IMMUTABLE."