[AC-4696] Android: Ti.App._restart() breaks a local WebView
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2016-12-28T19:45:57.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | android |
| Reporter | Todd Miller |
| Assignee | Shak Hossain |
| Created | 2016-12-27T19:53:06.000+0000 |
| Updated | 2016-12-28T19:45:57.000+0000 |
Description
1. Using Titanium SDK, launch a local webview that pulls in an asset (an image or a JS file for instance). (Titanium automatically determines the asset URL to be "file:///android_asset/Resources/whatever.png"
2. Reload the application using Ti.App._restart().
3. The asset in the webview will no longer be found. The URL it is trying to access is now "file:///android_asset/Resources//whatever.png" (extra slash).
There is no public API method called
restartso you're probably accessing private API - which is not supported and advised.