Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Multiple push notification on Android

$
0
0

Hey everyone,

I am facing the situation where when i send multiple push notification to my app they all show in the notification bar, when i open one of them the callback associated gets called and the coded behavior gets executed however when i open the second notification the code in the callback doesn't get executed but the application just opens. this is part of my code:

var CloudPush = require('ti.cloudpush');
            CloudPush.retrieveDeviceToken({
                success : successCb,
                error : errorCb
            });
            // Process incoming push notifications
            CloudPush.addEventListener('callback', function(evt) {
                var payload = JSON.parse(evt.payload);
                handlePushNotificationMessages(payload);
            });
when i open the first notification the callback code gets executed but when i open other notifications the app just opens as if it was launched from the drawer.

Thanks in advance


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>