diff --git a/native-src/android/README.md b/native-src/android/README.md index 93f5ded..e2ccd34 100644 --- a/native-src/android/README.md +++ b/native-src/android/README.md @@ -4,4 +4,4 @@ - Open this folder as "an existing project" in Android Studio - Change anything needed - In the Gradle build window run `app > Tasks > build > clean` and `app > Tasks > build > build` -- Copy the release .aar: from the project root, run: `cp native-src/android/app/build/outputs/aar/app-release.aar src/platforms/android/` +- Copy the release .aar: from the plugin project root, run: `cp native-src/android/app/build/outputs/aar/app-release.aar src/platforms/android/` diff --git a/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationActionReceiver.java b/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationActionReceiver.java index 942540e..d2463a1 100644 --- a/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationActionReceiver.java +++ b/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationActionReceiver.java @@ -45,13 +45,11 @@ protected void onHandleIntent(@Nullable Intent intent) { } try { - final JSONObject jsonData = new JSONObject(); jsonData.put("event", Builder.NOTIFICATION_ID); LocalNotificationsPlugin.executeOnMessageClickedCallback(jsonData); onClick(intent.getAction(), bundle); - } catch (JSONException e) { Log.e(TAG, e.getMessage(), e); } diff --git a/src/package.json b/src/package.json index 6b7fbb0..fcf9c29 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-local-notifications", - "version": "4.2.0", + "version": "4.2.1", "description": "The Local Notifications plugin allows your app to show notifications when the app is not running. Just like remote push notifications, but a few orders of magnitude easier to set up.", "main": "local-notifications", "typings": "index.d.ts", diff --git a/src/platforms/android/app-release.aar b/src/platforms/android/app-release.aar index 8143742..2294563 100644 Binary files a/src/platforms/android/app-release.aar and b/src/platforms/android/app-release.aar differ