arleyandrada / PushClient

FREE and Open Source - Titanium PushClient Module
Other
44 stars 17 forks source link

Clear Notification? #133

Closed kerberosargos closed 8 years ago

kerberosargos commented 8 years ago

Hi firstly thank you for developing this useable module.

is there any method for clear notification from notification bar? For example when app is turn from background to turn foreground, notification must be clear from notification bar.

arleyandrada commented 8 years ago
                    if (OS_ANDROID) {
                        Ti.Android.NotificationManager.cancelAll();
                    } else {
                        Ti.UI.iPhone.appBadge = 0;
                    }