-
Notifications
You must be signed in to change notification settings - Fork 31
PushNotification not open app #32
Copy link
Copy link
Open
Description
Why when I click on the notification my app doesn't open ?
this is my index.js
Alloy.Globals.Parse.subscribeChannel('prixApp');
Alloy.Globals.Parse.addEventListener('notificationreceive', function(e) {
console.log("notification: ", JSON.stringify(e));
});
Alloy.Globals.Parse.addEventListener('notificationopen', function(e) {
Ti.API.log("notification: ", JSON.stringify(e));
var data = Ti.App.Android.launchIntent.getStringExtra('com.parse.Data');
if(data) {
try {
var json = JSON.parse(data);
// Now handle the click on the notification
}
catch(_e) {}
}
});
and this is my alloy.js
// Parse
Alloy.Globals.Parse = require('eu.rebelcorp.parse');
Alloy.Globals.Parse.start();
I'm something wrong or the app is not suppose to open when I click on the notification ?
Thanks 4.1.0.GA
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels