Skip to content

Commit a14e53d

Browse files
Parse the android notification callback payload, so it's similar to iOS
1 parent 5c2577b commit a14e53d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

local-notifications.android.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ LocalNotifications.addOnMessageReceivedCallback = function (callback) {
88
// note that this is ONLY triggered when the user clicked the notification in the statusbar
99
com.telerik.localnotifications.LocalNotificationsPlugin.setOnMessageReceivedCallback(
1010
new com.telerik.localnotifications.LocalNotificationsPluginListener({
11-
success: callback
11+
success: function(notification) {
12+
callback(JSON.parse(notification))
13+
}
1214
})
1315
);
1416
resolve();

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": "0.2.0",
3+
"version": "1.0.0",
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.js",
66
"nativescript": {

0 commit comments

Comments
 (0)