You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
SDK 31 PendingIntent flag error, Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Exact error:
java.lang.RuntimeException: Unable to create service de.appplant.cordova.plugin.background.ForegroundService: java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Expected behavior:
This error is already handled in the source plugin repo and should be updated here.
Other information:
I don't know if this helps but since i am in a capacitor project i added the cordova plugins using npm as below:
then had to do npm uninstall cordova-plugin-background-mode
in order to add the plugin code directly from its repo, and it worked correctly after that. npm install https://github.com/katzer/cordova-plugin-background-mode.git
I'm submitting a ... (check one with "x")
Current behavior:
SDK 31 PendingIntent flag error, Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Exact error:
Expected behavior:
This error is already handled in the source plugin repo and should be updated here.
Other information:
I don't know if this helps but since i am in a capacitor project i added the cordova plugins using
npm
as below:then had to do
npm uninstall cordova-plugin-background-mode
in order to add the plugin code directly from its repo, and it worked correctly after that.
npm install https://github.com/katzer/cordova-plugin-background-mode.git
Ionic info:
The text was updated successfully, but these errors were encountered: