Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(){
- app.tabGroup.open();
- // TODO: write your module tests here
- Ti.UrbanAirship = require('ti.urbanAirship');
- Ti.API.info("module is => "+Ti.UrbanAirship);
- Ti.UrbanAirship.appKey = 'OWVUhSIgQumDj0gDcwfF1g';
- Ti.UrbanAirship.secret = 'AoOedvVXR12p0OJ2tY77AQ';
- Ti.Network.registerForPushNotifications({
- types:[Ti.Network.NOTIFICATION_TYPE_BADGE],
- success: function(e) {
- var token = e.deviceToken;
- Ti.UrbanAirship.registerDevice({token:token});
- Ti.API.log('Registered remotely!');
- }
- });
- })();
Add Comment
Please, Sign In to add comment