Open ghost opened 7 years ago
As a title I found this issue when I rotate screen on my Android Device and Emulator.
ERROR : W/System.err(31716): Frame: function:'WebViewInterface._executeJS', file:'file:///data/data/com.xxxx.xxx/files/app/tns_modules/nativescript-webview-interface/index.js', line: 64, column: 29 W/System.err(31716): Frame: function:'WebViewInterface.callJSFunction', file:'file:///data/data/com.xxxx.xxx/files/app/tns_modules/nativescript-webview-interface/index-common.js', line: 164, column: 10 W/System.err(31716): at com.tns.Runtime.callJSMethodNative(Native Method) W/System.err(31716): at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197) W/System.err(31716): at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1047) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1028) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1018)
W/System.err(31716): Frame: function:'WebViewInterface._executeJS', file:'file:///data/data/com.xxxx.xxx/files/app/tns_modules/nativescript-webview-interface/index.js', line: 64, column: 29 W/System.err(31716): Frame: function:'WebViewInterface.callJSFunction', file:'file:///data/data/com.xxxx.xxx/files/app/tns_modules/nativescript-webview-interface/index-common.js', line: 164, column: 10 W/System.err(31716): at com.tns.Runtime.callJSMethodNative(Native Method) W/System.err(31716): at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197) W/System.err(31716): at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1047) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1028) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1018)
application.on(application.orientationChangedEvent, self.orientationChange.bind(this));
this.webViewPlayerInterface.callJSFunction('xxx', [data]);
which is using for trigger function xxx in my web view to do something.
One thing that weird is sometime this issue will happen but sometimes not.
Pls help to suggest on this.
Thank you
As a title I found this issue when I rotate screen on my Android Device and Emulator.
ERROR :
W/System.err(31716): Frame: function:'WebViewInterface._executeJS', file:'file:///data/data/com.xxxx.xxx/files/app/tns_modules/nativescript-webview-interface/index.js', line: 64, column: 29 W/System.err(31716): Frame: function:'WebViewInterface.callJSFunction', file:'file:///data/data/com.xxxx.xxx/files/app/tns_modules/nativescript-webview-interface/index-common.js', line: 164, column: 10 W/System.err(31716): at com.tns.Runtime.callJSMethodNative(Native Method) W/System.err(31716): at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197) W/System.err(31716): at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1047) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1028) W/System.err(31716): at com.tns.Runtime.callJSMethod(Runtime.java:1018)
application.on(application.orientationChangedEvent, self.orientationChange.bind(this));
this.webViewPlayerInterface.callJSFunction('xxx', [data]);
which is using for trigger function xxx in my web view to do something.
One thing that weird is sometime this issue will happen but sometimes not.
Pls help to suggest on this.
Thank you