cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
265 stars 316 forks source link

NotificationData overrides with recently pushed notification. #195

Closed Nagapandi closed 7 years ago

Nagapandi commented 7 years ago

when i get the notification, the lastly added custom object data is shown for all notifications instead of the corresponding custom object.

156

Please let me know how to get the respective object of the notification message.

here the code

for (i = 0; i < 5; i++) {
var g[i] = { id: i, latitude: , longitude: , radius: , transitionType: TransitionType.ENTER, notification: { id: i, title:"Title", text: "Text", openAppOnClick: true, data: { id: i, title: Title, text: Text }
} }
}

Nagapandi commented 7 years ago

got the solution for this issue in GeoNotificationNotifier.java file you need to modify the below line.

PendingIntent resultPendingIntent = stackBuilder.getPendingIntent( , PendingIntent.FLAG_UPDATE_CURRENT);

tsubik commented 7 years ago

Fixed in #206