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

iOS 13: registerForPushNotifications callback are not fired

    Details

      Description

      The Ti.Network.registerForPushNotifications success, error and callback are not fired at all on iOS 13. The same code works well on iOS 12.4.3.

      Here is the snippet:

              if (OS_IOS) {
                  Ti.App.iOS.addEventListener('usernotificationsettings', function eventUserNotificationSettings() {
                      Ti.App.iOS.removeEventListener('usernotificationsettings', eventUserNotificationSettings);
                  
                      Ti.Network.registerForPushNotifications({
                          success: successCallback,
                          error: errorCallback,
                          callback: notificationsCallback
                      });
                  });
                  
                  Ti.App.iOS.registerUserNotificationSettings({
                      types: [
                          Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT,
                          Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND,
                          Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE
                      ]
                  });
              }
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              Andrea.Vitale Andrea Vitale
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration