Skip to content

Commit 7bdecb0

Browse files
Add a callback method when notification message clicked. #187
1 parent 50c35a8 commit 7bdecb0

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

native-src/android/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
- Open this folder as "an existing project" in Android Studio
55
- Change anything needed
66
- In the Gradle build window run `app > Tasks > build > clean` and `app > Tasks > build > build`
7-
- Copy the release .aar: from the project root, run: `cp native-src/android/app/build/outputs/aar/app-release.aar src/platforms/android/`
7+
- Copy the release .aar: from the plugin project root, run: `cp native-src/android/app/build/outputs/aar/app-release.aar src/platforms/android/`

native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationActionReceiver.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ protected void onHandleIntent(@Nullable Intent intent) {
4545
}
4646

4747
try {
48-
4948
final JSONObject jsonData = new JSONObject();
5049
jsonData.put("event", Builder.NOTIFICATION_ID);
5150
LocalNotificationsPlugin.executeOnMessageClickedCallback(jsonData);
5251

5352
onClick(intent.getAction(), bundle);
54-
5553
} catch (JSONException e) {
5654
Log.e(TAG, e.getMessage(), e);
5755
}

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-local-notifications",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"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.",
55
"main": "local-notifications",
66
"typings": "index.d.ts",

src/platforms/android/app-release.aar

106 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)