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

ti.cloudpush showTrayNotificationsWhenFocused doesnt work

$
0
0

Hello,

How can I hide notification messages when my app is in foreground ???

I am using this code to set the configurations for my cloud push on mqtt type :

androidPushModule.enabled = true;
androidPushModule.showAppOnTrayClick = true;
androidPushModule.showTrayNotificationsWhenFocused = false;
androidPushModule.showTrayNotification = true;
androidPushModule.singleCallback = true;
androidPushModule.focusAppOnPush = false;
androidPushModule.addEventListener('callback', receivePush);
I m getting notification when the application is in background and its good, but when I enter my app, I am still getting the notifications in the tray...

What did I done wrong ?

Thanx for your helps ... Roy


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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