Hi team, i have found an issue after upgrading the appcelerator SDK from 6.0.4 to 6.2.2.
HTML Key is missing under the source object. i used that key to find out whether the response(url response data) is success/error based on it.
Added the Info method to capture the response in the code. For example added google.com in the web view url.
Please let me know if there is any change to the source object or if i need to use any other method/object.
{"type":"load","source":{"lightTouchEnabled":true,"overScrollMode":0,"url":"https://www.google.com/","disableContextMenu":false,"pluginState":0,"userAgent":"Mozilla/5.0 (Linux; Android 6.0.1; SM-G930V Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36","enableZoomControls":true,"hiddenBehavior":4,"enabled":true,"visible":true,"touchEnabled":true,"borderRadius":0,"backgroundRepeat":false,"height":"fill","width":"fill","keepScreenOn":false,"children":[],"size":{"height":560,"width":360,"y":0,"x":0},"rect":{"height":560,"width":360,"y":80,"x":0},"apiName":"Ti.UI.WebView","bubbleParent":true,"id":"termsWebView","soundEffectsEnabled":true,"horizontalWrap":true,"enableJavascriptInterface":true,"_events":{"error":{},"load":{}}},"url":"https://www.google.com/","bubbles":true,"cancelBubble":false}
In IOS, For the error we are getting the below fields.
logs below for success and error
Let me know if you need more details.
Hi guys ! I have created the testcase: app.js file
If you see the console output, the object doesn't include the html attribute
I validated all commits back to 6.0.x and we did not remove / change any "html" keys in the "load" event. In fact, the "html" key was never documented as part of the event, so maybe you received it through the "source.html" property? Let's fix it! *EDIT*: Actually it works fine. Tested with kroll- and main-thread. Also with appcelerator.com and google.com:
Hello [~hknoechel] This is also happening on Android please see here: https://gist.github.com/aminulaust/65c2a1ed20a035aaad71a2149174de1d Should I file a new Jira or we can keep working on this one ?
master: https://github.com/appcelerator/titanium_mobile/pull/9643
[~gmathews], Can you please provide a backport for this.
Found issues, left comment in the PR.
7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9686
FR passed for master & backport. Confirmed with [~gmathews], the errors seen (commented in the PR) are not related to this ticket & a separate PR will be made for it.
Verified the fix with SDK 7.0.1.v20171218104141 & 7.1.0.v20171218101353. Closing. Studio Ver: 5.0.0.201712081732 SDK Ver: 7.0.1.v20171218104141, 7.1.0.v20171218101353 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.11 Appc CLI: 7.0.1-master.5 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.10.10 Node Ver: 8.9.1 Java Ver: 1.8.0_101 Devices: ⇨ google Pixel --- Android 7.1.1 ⇨ google Nexus 5 --- Android 6.0.1