Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (switch)
Viewing all articles
Browse latest Browse all 28

Unsubscribe from UrbanAirship Push Notifications

$
0
0

Hi, I am using Titanium SDK 3.3.0 GA an the ti.urbanairship module from github. I am building for both Android and iOS and everything works perfectly for the moment.

I want to add a switch to disable push notifications for both platforms. Is this correct?

Android: var UrbanAirship = require('ti.urbanairship'); UrbanAirship.pushEnabled = false;

iOS: var UrbanAirship = require('ti.urbanairship'); Ti.Network.unregisterForPushNotifications();

Thank you!


Viewing all articles
Browse latest Browse all 28

Trending Articles



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