Skip to content

PushNotification not open app #32

@DouglasHennrich

Description

@DouglasHennrich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions