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

Mathkeyboard doesn't work/throws error - Javascript error #2

Closed
UliPrantz opened this issue Jan 10, 2020 · 2 comments
Closed

Mathkeyboard doesn't work/throws error - Javascript error #2

UliPrantz opened this issue Jan 10, 2020 · 2 comments

Comments

@UliPrantz
Copy link

Describe the bug
When I press any button on the mathkeyboard nothing occurs on the display but following error is thrown:

JavaScript string was: 'addCmd('9', {isOperator: false})' Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=ReferenceError: Can't find variable: addCmd, WKJavaScriptExceptionColumnNumber=7, WKJavaScriptExceptionSourceURL=about:blank, NSLocalizedDescription=A JavaScript exception occurred}

To Reproduce
Steps to reproduce the behavior:
Just start the App (in my case iPhone Simulator 11 Pro Max - iOS 13.3) and try to type any kind of Input with the mathkeyboard.

Expected behavior
A clear and concise description of what you expected to happen.

Normally the keyboard expression should appear in the WebView.

Version:

  • iPhone Simulator 11 Pro Max - iOS 13.3
@DylanXie123
Copy link
Owner

I used some packages that require extra settings in iOS devices like webview_flutter and flutter_tex, but I don't have a mac device to test it. Maybe the following steps can help:

  • adding a boolean property to the app's Info.plist file, with the key io.flutter.embedded_views_preview and the value YES.
  • add following code in your <project-directory>/ios/Runner/Info.plist
<key>NSAppTransportSecurity</key>
  
  <dict>
    <key>NSAllowsArbitraryLoads</key> <true/>
  </dict>

<key>io.flutter.embedded_views_preview</key> <true/> 

@HardVeur
Copy link

Ok I will test it if you want to I can contribute more often in the future and make iOS support stable.

Thanks for the advice :)

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

3 participants