Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4696] Android: Ti.App._restart() breaks a local WebView

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2016-12-28T19:45:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterTodd Miller
AssigneeShak Hossain
Created2016-12-27T19:53:06.000+0000
Updated2016-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).

Comments

  1. Hans Knöchel 2016-12-27

    There is no public API method called restart so you're probably accessing private API - which is not supported and advised.

JSON Source