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

Titanium.App.iOS.cancelAllLocalNotifications() not working for the sound

$
0
0

Hi,

I'm using local notifications for my application.

I create them when "pause" event is called :

Ti.App.addEventListener('pause', function (e) {
    // init notif
    initNotif();
});
And i remove them when "resume" event is called :
Ti.App.addEventListener('resume', function (e) {
    // cancel notif
    Titanium.App.iOS.cancelAllLocalNotifications();
});
Everything is working, my notif is called and cancelled BUT when I resume my app, even if the notif is cancelled, i can still hear the sound of the notif. I tried to cancel specifically my notif :
myNotification.cancel();
But this is not working, i can still hear the sound of my notif. How can I do to cancel notif and his sound when I resume the app ?

TY


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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