New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-14617] iOS 7 : Backgrounding Features #4936
Conversation
…e into timob-14617-master
description: | | ||
This property has no effect for apps that do not have the UIBackgroundModes key with | ||
the fetch value in its Info.plist file. The default fetch interval for apps is | ||
<replace>. Therefore, you must call this method and set a fetch interval before your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace?
to the [endBackgroundHandler](Titanium.App.iOS.endBackgroundHandler) method. | ||
type: String. | ||
platforms: [iphone, ipad] | ||
since: '3.2.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
osver: {ios: {min: "7.0"}}
Note to self, testing with image url http://edmullen.net/test/rc.jpg since it's larger than the one provided in app.js |
FR PASSED |
@srahim I tested it and it works as described above. |
@vishalduggal addressed review comments. |
PR APPROVED! |
[TIMOB-14617] iOS 7 : Backgrounding Features
Introduces following new events
New Ti.App.iOS level Events
New Ti.App.iOS methods
TESTING INSTRUCTIONS
** There are 3 cases to be tested for urlSession
Use the following app.js for all cases mentioned below.
Be sure to include the module to your project.
1. Foreground downloading
* User initiates a background download while in the foreground. The download completes while in the foreground itself.
Instructions.
2. Foreground download initiation + Background download
* User initiates a background download while in the foreground. Then the app is but into background, download completes while the app is in the background itself.
Instructions.
3. Background Fetch causing a background download
****NOTE :: This would be the most important and slightly tricky use case as you would have to use Xcode to complete this.
INSTRUCTIONS ON TESTING
initial test setup
actual test
Debug
Option.Simulate Background Fetch
option.Please do let me know if you get stuck on any of the steps.