-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pass the values extra values from index.js to index.html in iOS real device #34
Comments
I too, can get it to work in the ios simulator, but not on the ios device. |
Any news on this issue? Having the same problem. |
I am facing same issue.....any updates here? |
I too, any updates here? |
@d-a-p-h This issue comes on iOS real device when you build app without certificates. If you run release version of the app on real iOS device, this issue should go away. |
@phatakrajan thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I am trying to run my application in iOS real device after integrated the webview-interface and modified the index.html file with adding some elements and passing the data from index.js. I am getting error like this
CONSOLE ERROR file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:569:26: Unhandled Promise rejection: Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'window.nsWebViewInterface._onNativeEvent'), WKJavaScriptExceptionColumnNumber=26, WKJavaScriptExceptionSourceURL=file:////var/mobile/Containers/Data/Application/43998519-0A7B-4DB9-87F6-98BB2F9D179B/Library/Application%20Support/LiveSync/app/www/index.html, NSLocalizedDescription=A JavaScript exception occurred} ; Zone: ; Task: null ; Value: Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not anobject (evaluating 'window.nsWebViewInterface._onNativeEvent'), WKJavaScriptExceptionColumnNumber
CONSOLE ERROR file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:571:22: Error: Uncaught (in promise): Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'window.nsWebViewInterface._onNativeEvent'), WKJavaScriptExceptionColumnNumber=26, WKJavaScriptExceptionSourceURL=file:////var/mobile/Containers/Data/Application/43998519-0A7B-4DB9-87F6-98BB2F9D179B/Library/Application%20Support/LiveSync/app/www/index.html, NSLocalizedDescription=A JavaScript exception occurred}
But it is working fine in Android both emulator and real device. In iOS simulator also working fine I am getting error in iOS real device only.
The text was updated successfully, but these errors were encountered: