[TIMOB-14791] Android: Disable fastdev on device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-08-09T19:42:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 API, Release 3.2.0 |
Components | Android |
Labels | n/a |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2013-08-08T23:49:26.000+0000 |
Updated | 2017-03-20T16:20:56.000+0000 |
Description
We need to disable fastdev on device to prevent app hanging in the edge case described below:
Testing steps:
1. Run any project on emulator. Check to make sure fastDev process is running.
2. Turn on fastdev property in tiapp.xml.
<property name="ti.android.fastdev" type="bool">true</property>
3. Run the same project on device.
Note: Step 1 and 2 does NOT need to be done in order (i.e: you can turn on the property before you launch the emulator, since it wouldn't make any difference). Also, note that if you run Emulator 4.2 or 4.3 in step 1, your app will crash (if run using Titanium Studio), or hang (if run using Appcelerator Studio), but the fast dev server SHOULD be running.
After step 3, you would see that the app on device hangs on splash screen. It shouldn't.
Repeat step 3 on multiple devices (2.3, 4.0, 4.1, 4.2, 4.3)
master PR: https://github.com/appcelerator/titanium_mobile/pull/4563
Although this ticket was written later than TIMOB-14793, Hieu and I agreed to resolve this as a duplicate of the other. TIMOB-14793 may provide more clarity for developers searching for the behavior they might encounter.
Closing ticket as duplicate.