Created
July 10, 2013 14:21
-
-
Save FokkeZB/5966703 to your computer and use it in GitHub Desktop.
Titaniums Ti.Network methods and properties give little information about the current status of push notifications. This is pretty much as far as it goes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Ti.Network.remoteNotificationsEnabled) { | |
Ti.API.info('User has enabled push'); | |
} else if (Ti.Network.remoteDeviceUUID === null) { | |
Ti.API.info('User has never enabled push'); | |
} else { | |
Ti.API.info('User has manually disabled push'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment