Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-26T18:38:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsiOS
Labelsios8, qe-3.4.0
ReporterWilson Luu
AssigneePedro Enrique
Created2014-09-12T21:53:20.000+0000
Updated2014-11-21T20:25:40.000+0000

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.

Comments

  1. Pedro Enrique 2014-09-15

    PR: https://github.com/appcelerator/titanium_mobile/pull/6075
  2. Pedro Enrique 2014-09-15

    Moved from TIMODOPEN to TIMOB since the bug was in titanium_mobile
  3. Pedro Enrique 2014-09-15

  4. Jon Alter 2014-09-15

    This issue was fixed by TIMOB-17640
  5. Wilson Luu 2014-09-16

    Closing ticket as fixed. I am not seeing "enabledRemoteNotificationTypes is not supported" message anymore; disabled all services when verifying this again. Tested on: Appcelerator Studio, build: 3.4.0.201409131030 SDK build: 3.4.0.v20140916131632 CLI: 3.4.0-rc3 Alloy: 1.5.0-rc2 Xcode: 6 GM Seed Devices: iphone 5 (8.0 GM Seed)
  6. Pedro Enrique 2014-09-26

    opened by mistake, closing

JSON Source