tylervz edited a comment on issue #1080:
URL: https://github.com/apache/cordova-ios/issues/1080#issuecomment-802141376


   I want to follow up here in case anybody else experiences the same issues I 
was running in to. As I [explained in the GitHub issue I opened with 
OpenUI5](https://github.com/SAP/openui5/issues/3173#issuecomment-802135977), I 
discovered that loading OpenUI5 from the CDN (rather than loading it from local 
files) resolves all the issues I was having in the Cordova app.
   
   ```
   <script id="sap-ui-bootstrap"
       src="https://openui5.hana.ondemand.com/1.85.4/resources/sap-ui-core.js";
       data-sap-ui-theme="sap_fiori_3"
       data-sap-ui-resourceroots='{
           "sap.ui.demo.basicTemplate": "./"
       }'
       data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
       data-sap-ui-compatVersion="edge"
       data-sap-ui-async="true"
       data-sap-ui-frameOptions="trusted">
   </script>
   ```
   On the `cdn` branch of my sample application, you can run it and see for 
yourself. So the solution we're going to use in our actual app is to add the 
`sap-ui-bootstrap` script tag dynamically with JavaScript when deviceready 
fires. If the app is running on iOS 12, we will set `src` to the CDN i.e. 
`"https://openui5.hana.ondemand.com/1.85.4/resources/sap-ui-core.js"` and 
otherwise we will set `src` to a local `sap-ui-core.js` file.


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