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

iOS8: UrlSession - "enabledRemoteNotificationTypes is not supported" message appears if you require in the com.appcelerator.urlSession module

    Details

    • Type: Bug
    • 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:
    • Environment:

      Appcelerator Studio, build: 3.4.0.201409112242
      SDK build: 3.4.0.v20140912120914
      com.appcelerator.urlSession: 1.0.1
      CLI: 3.4.0-rc2
      Alloy: 1.5.0-rc
      Xcode: 6 GM Seed
      Devices: iphone 5 (8.0 GM Seed)

    • Story Points:
      3
    • Sprint:
      2014 Sprint 19 SDK

      Description

      Details: "enabledRemoteNotificationTypes is not supported" message appears if you require in the com.appcelerator.urlSession module.

      Steps to reproduce:
      1. Create a Titanium app; make sure to include com.appcelerator.urlSession module in the tiapp.xml
      2. In the app.js, require in the module e.g. var monkey = require("com.appcelerator.urlSession");
      3. In the tiapp.xml, include the following iOS plist keys in the dict node:

      ...
      <ios>
          <plist>
              <dict>
                  ...
                  <key>UIBackgroundModes</key>
                  <array>
                      <string>fetch</string>
                      <string>remote-notification</string>
                  </array>
               </dict>
           </plist>
      </ios>
      ...
      

      4. Install app onto device
      5. Background the app
      6. Relaunch the app again

      Actual: "enabledRemoteNotificationTypes is not supported" message appears in the console:

      [DEBUG] :  Application booted in 304.236054 ms
      [DEBUG] :  enabledRemoteNotificationTypes is not supported in iOS 8.0 and later.
      

      Expected: "enabledRemoteNotificationTypes is not supported" message should not appear in the console.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                wluu Wilson Luu (Inactive)
                Reviewer:
                Jon Alter
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration