Guest User

Untitled

a guest
Nov 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. (function(){
  2. app.tabGroup.open();
  3.  
  4. // TODO: write your module tests here
  5. Ti.UrbanAirship = require('ti.urbanAirship');
  6. Ti.API.info("module is => "+Ti.UrbanAirship);
  7.  
  8. Ti.UrbanAirship.appKey = 'OWVUhSIgQumDj0gDcwfF1g';
  9. Ti.UrbanAirship.secret = 'AoOedvVXR12p0OJ2tY77AQ';
  10. Ti.Network.registerForPushNotifications({
  11. types:[Ti.Network.NOTIFICATION_TYPE_BADGE],
  12. success: function(e) {
  13. var token = e.deviceToken;
  14. Ti.UrbanAirship.registerDevice({token:token});
  15. Ti.API.log('Registered remotely!');
  16. }
  17. });
  18.  
  19. })();
Add Comment
Please, Sign In to add comment