Skip to content

Instantly share code, notes, and snippets.

@FokkeZB
Created July 10, 2013 14:21
Show Gist options
  • Save FokkeZB/5966703 to your computer and use it in GitHub Desktop.
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.
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