Skip to content
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

Dev #1178

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Dev #1178

wants to merge 3 commits into from

Conversation

timursarvarov
Copy link

No description provided.

@saggio89
Copy link

saggio89 commented Sep 7, 2022

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants