[TIMOB-19585] iOS: Missing UIBackgroundModes "fetch" and "remote-notification"
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-09-29T15:07:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.1.0 |
Components | iOS, Tooling |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2015-09-25T17:53:56.000+0000 |
Updated | 2015-10-14T21:30:59.000+0000 |
Description
When running a Titanium app in the simulator I noticed the following in the console:
Sep 25 12:39:01 yojimbo itworks[99959]: You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
Sep 25 12:39:01 yojimbo itworks[99959]: You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
It appears that we need to add "fetch" and "remote-notification" to the list of UIBackgroundModes.
Master PR: https://github.com/appcelerator/titanium_mobile/pull/7233 5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7234
Thanks for the PRs. but we cannot automatically add those properties into the plist because not everyone requires fetch and remote-notification. Those warnings appear because we have the delegates built, but they do nothing unless those properties are set. A better solution is to suppress these warnings. Notice there are the
So it should be if "fetch" and "remote-notification" properties are set in tiapp.xml, these flags should be activated.
[~cng] I'm cool with suppressing these warnings. If you would, create a new ticket to suppress these warnings, link it to this ticket, close the PRs, resolve this ticket invalid. Thanks!