Open kiwi-x opened 1 year ago
This is similar to PR #1158 which was merged into master. The only difference is this has an "If" condition. @kiwi-x is this for backward compatibility on old versions of Android?
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
pendingIntentValueFLAG = pendingIntentValueFLAG | PendingIntent.FLAG_IMMUTABLE;
}
final PendingIntent pendingIntent = PendingIntent.getBroadcast(cordova.getActivity().getApplicationContext(), 0, receiverIntent, pendingIntentValueFLAG);
Hello, yes I think so, 'cause on older Android Version (< Android S) You probably don't have the FLAG_IMMUTABLE flag.
beside changes to plugin xml you need to have a new flag for pnedingintents for android 13