I have implemented push notifications with urban airship in an app, the problem I have is that I would like to give the user the option in the app settings to turn them on and off.
How do you turn off push notifications?
I tried the following, assuming that the lack of listed services would be the answer but it didn`t work.
Titanium.Network.registerForPushNotifications({ types: [ ], success:function(e) { }, error:function(e) { Titanium.UI.createAlertDialog({title:'Pure Acquisitions', message:'It has not been possible to turn off Push Notifications. ' + e.error}).show(); }, callback:function(e) { } });