Skip to content
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

Open
san18793 opened this issue Jun 15, 2018 · 6 comments

Comments

@san18793
Copy link

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.

@bradrice
Copy link

bradrice commented Jul 5, 2018

I too, can get it to work in the ios simulator, but not on the ios device.

@appdevsa
Copy link

appdevsa commented Nov 8, 2018

Any news on this issue? Having the same problem.

@phatakrajan
Copy link

I am facing same issue.....any updates here?

@d-a-p-h
Copy link

d-a-p-h commented Feb 18, 2019

I too, any updates here?

@phatakrajan
Copy link

@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.

@d-a-p-h
Copy link

d-a-p-h commented Feb 18, 2019

@phatakrajan thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants