eclipsesource / tabris-plugin-firebase

A firebase plugin for Tabris.js
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

notification click but not working app #25

Closed gacal closed 6 years ago

gacal commented 6 years ago

Problem description

notification click but not working app

Environment

Code snippet

if (firebase.Messaging.launchData) {
    helper.alert('App launched with data:\n\n' + JSON.stringify(firebase.Messaging.launchData));
}

firebase.Messaging.on({
    instanceIdChanged: updateMessagingDetails,
    tokenChanged: updateMessagingDetails,
    message: ({data}) => {
        helper.alert(`Message received:\n\n${JSON.stringify(data)}`);
    }
});

updateMessagingDetails();

function updateMessagingDetails() {
    let token = firebase.Messaging.token;
    if (token) {
        helper.httpPost('user/setToken', ['t=' + token]);
    }
}
gacal commented 6 years ago

click_action clear now working

natanraj commented 6 years ago

@gacal How did you resolve this ? I too had the same problem just now