Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17714

iOS8: registerForPushNotifications events do not fire, no token returned

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 3.4.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Sprint:
      2018 Sprint 05 SDK

      Description

      Running latest RC of 3.4 + 3.4.0.v20140916181713 SDK and XCode6

      Building with iOS8SDK with the following code:-

      Ti.Network.registerForPushNotifications({
      		types : [Ti.App.iOS.NOTIFICATION_TYPE_BADGE, Ti.App.iOS.NOTIFICATION_TYPE_ALERT, Ti.App.iOS.NOTIFICATION_TYPE_SOUND],
      		success : onSuccess,
      		error : deviceTokenError,
      		callback : receivePush
      	});
      

      works and onSuccess is fired, a token is received - but the error :-

      "Passing `types` to registerForPushNotifications is not supported on iOS 8 and greater. Use registerUserNotificationSettings to register notification types."

      is reported in the logs

      If I use the recommended approach in the docs:-

      Ti.App.iOS.registerUserNotificationSettings({
      		types : [Ti.App.iOS.NOTIFICATION_TYPE_BADGE, Ti.App.iOS.NOTIFICATION_TYPE_ALERT, Ti.App.iOS.NOTIFICATION_TYPE_SOUND],
      	});
       
      	Ti.Network.registerForPushNotifications({
      		success : onSuccess,
      		error : deviceTokenError,
      		callback : receivePush
      	});
      

      onSuccess is not called, no token received, push is not registered.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jalter Jon Alter
                Reporter:
                jkneen Jason Kneen (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19223
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration