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

iOS8: Add isRegisteredForRemoteNotifications to determine whether the app is currently registered for remote notifications.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.4.0, Release 3.5.0
    • Component/s: iOS
    • Labels:
    • Story Points:
      3
    • Sprint:
      2014 Sprint 18 SDK

      Description

      Returns a Boolean indicating whether the app is currently registered for remote notifications.

      Add support for isRegisteredForRemoteNotifications so that the developer can check if the user has authorized notifications.

      var hasAuthorized = Ti.App.iOS.isRegisteredForRemoteNotifications();
      if(hasAuthorized) {
      	Ti.API.info("User has already authorized");
      } else {
      	Ti.API.info("User needs to authorize, maybe ask them before the iOS rights dialog pops up");
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jalter Jon Alter
                Reporter:
                ben.bahrenburg@gmail.com Ben Bahrenburg
                Reviewer:
                Vishal Duggal (Inactive)
                Tester:
                Wilson Luu (Inactive)
              • Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code