Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1526

registerForPushNotifications doesnt return any token

    Details

      Description

      i run following codes on ios8 with sdk 3.4.1 RC and 3.4.1 GA but registering function doesnt enter any function (success , error , callback). It stay suspended and i cant take any reply.

      Thanks for your help.

      function registerForPush() {

      Ti.Network.registerForPushNotifications({

      success : function(e)

      { ApplicationManager.DeviceToken = e.deviceToken; args.callback(true); }

      ,
      error : function(e)

      { ApplicationManager.ShowMessage(e.error); args.callback(false); }

      ,
      callback : function(e)

      { ApplicationManager.NOTIFI = e; self.OpenNotification(); }

      });

      Ti.App.iOS.removeEventListener('usernotificationsettings', registerForPush);
      };

      Ti.App.iOS.registerUserNotificationSettings(

      { types : [Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE, Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT, Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND], }

      );
      Ti.App.iOS.addEventListener('usernotificationsettings', registerForPush);

        Attachments

          Activity

            People

            • Assignee:
              sliang Shuo Liang
              Reporter:
              programlama@akinsoft.com.tr Ercan POLAT
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration