Open timursarvarov opened 1 year ago
This is similar to PR #1158 which was merged into master except for the "if" condition, @timursarvarov is this needed for backwards compatibility for old versions of android?
PendingIntent pendingIntent = null; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) { pendingIntent = PendingIntent.getBroadcast(cordova.getActivity().getApplicationContext(), 0, receiverIntent, PendingIntent.FLAG_MUTABLE); } else { pendingIntent = PendingIntent.getBroadcast(cordova.getActivity().getApplicationContext(), 0, receiverIntent, PendingIntent.FLAG_UPDATE_CURRENT); }
This is similar to PR #1158 which was merged into master except for the "if" condition, @timursarvarov is this needed for backwards compatibility for old versions of android?