[TIMOB-17690] iOS8: UrlSession - "enabledRemoteNotificationTypes is not supported" message appears if you require in the com.appcelerator.urlSession module
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-09-26T18:38:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.4.0, Release 3.5.0 |
Components | iOS |
Labels | ios8, qe-3.4.0 |
Reporter | Wilson Luu |
Assignee | Pedro Enrique |
Created | 2014-09-12T21:53:20.000+0000 |
Updated | 2014-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.
PR: https://github.com/appcelerator/titanium_mobile/pull/6075
Moved from TIMODOPEN to TIMOB since the bug was in titanium_mobile
This issue was fixed by TIMOB-17640
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)
opened by mistake, closing