Skip to content

Commit

Permalink
Merge pull request #37 from shankari/master
Browse files Browse the repository at this point in the history
Handle modifications required for the upgrade to API 32
  • Loading branch information
shankari authored Mar 17, 2023
2 parents 7b58b3f + a14f635 commit 49611d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-em-unifiedlogger",
"version": "1.3.5",
"version": "1.3.6",
"description": "Simple package that stores all the connection settings that need to be configured",
"license": "BSD-3-clause",
"cordova": {
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="cordova-plugin-em-unifiedlogger"
version="1.3.5">
version="1.3.6">

<name>UnifiedLogger</name>
<description>Log messages from both native code and javacript. Since this is
Expand Down
4 changes: 2 additions & 2 deletions src/android/NotificationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void createNotification(Context context, int id, String title, Str
activityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

PendingIntent activityPendingIntent = PendingIntent.getActivity(context, 0,
activityIntent, PendingIntent.FLAG_UPDATE_CURRENT);
activityIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
builder.setContentIntent(activityPendingIntent);

Log.d(context, TAG, "Generating notify with id " + id + " and message " + message);
Expand Down Expand Up @@ -85,7 +85,7 @@ public static void createResolveNotification(Context context, int id, String tit
activityIntent.putExtra(NotificationHelper.RESOLUTION_PENDING_INTENT_KEY, intent);

PendingIntent activityPendingIntent = PendingIntent.getActivity(context, 0,
activityIntent, PendingIntent.FLAG_UPDATE_CURRENT);
activityIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
builder.setContentIntent(activityPendingIntent);
// builder.setAutoCancel(true);

Expand Down

0 comments on commit 49611d6

Please sign in to comment.