ronligt opened a new issue #868:
URL: https://github.com/apache/cordova-ios/issues/868


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   An *mathjax* equation is converted to SVG with *mjpage*. This rendered html 
file is used in cordova app on iPhone (7). In ios < 13.5 app is started and 
shows equation as intended.
   
   
   ### What does actually happen?
   In ios 13.5 app is started and equation is not shown
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   * Rendered html file **does** show equation in browser.
   * mjpage is cli from https://github.com/pkra/mathjax-node-page
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   * setup cordova:
   
       ```bash
       $ cordova init test
       $ cd test
       $ cordova platform add ios
       $ cordova plugin add cordova-plugin-wkwebview-engine
       ```
   
   * add ios settings to `config.xml`:
   
       ```xml
       <platform name="ios">
          <allow-intent href="itms:*" />
          <allow-intent href="itms-apps:*" />    
          <preference name="WKWebViewOnly" value="true" />
          <feature name="CDVWKWebViewEngine">
              <param name="ios-package" value="CDVWKWebViewEngine" />
          </feature>
          <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" /> 
     
          <preference name="BackupWebStorage" value="local"/>
       </platform>
       ```
   
   * in default `index.html` the equation ($e=mc^2$) is added:
   
       ```html
       ...
       <p class="event received">Device is Ready</p>
       <p>$e=mc^2$</p>
       ...
       ````
   
   * `index.html` is rendered to SVG:
   
       ```bash
       $ mjpage --dollars --font=STIX --output=SVG < input.html > input_svg.html
       $ mv input_svg.html input.html
       ```
   
   * build and run app on device or emulate:
   
       ```bash
       $ cordova run
       $ cordova emulate
       ````
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   * Build on MacBook Pro (15", 2016) with 10.15.4
   * Tested on iPhone 7 with 13.5
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   * Cordova 9.0.0
   * Platform ios 5.1.1
   * Plugin cordova-plugin-wkwebview-engine 1.2.1
   * Xcode 11.5 (11E608c)
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to