Ember Cordova app stuck on loading screen in iOS 11.3

I have an app built with Corber for Ember-Cordova. Xcode version 9.3 cordova-ios@4.5.4 All dependencies updated to latest versions.

I'm testing on simulator as I don't have a development iPhone that can install iOS 11.

The app loads fine on iOS 11.2 and earlier - but on iOS 11.3 it gets stuck at the splash screen. After a while I see a loading icon, but the page never changes.

By analyzing with Safari as soon as the app starts loading, I can see that the the js scripts and the css are not being loaded from /www/index.html. This is what I see in the console log:

Cannot load script file:///Users/username/Library/Developer/CoreSimulator/Devices/07A01A47-573B-4D25-ABE3-AV9179985ABF/data/Containers/Bundle/Application/7976FE33-BLO3-21E9-A055-707AAC68468B/App%20Name.app/www/assets/vendor-e8t893cf6a6bg0f81f23d4a68ae6ffde.js. Failed integrity metadata check.

I've tried to find info on an 'integrity metadata check', and as far as I can see, it's being run by iOS to verify the checksum of the scripts being imported. In /www/index.html within Xcode I can see that the script tags have "integrity" properties, which are two checksums - one sha256, and one sha512. e.g.

<script src="assets/vendor-e8e903cf6a6bf0f81f23d4b68ae6ffde.js" integrity="sha256-MPm9fFc7ljuslonkMxW0TnQOAcy6KgJ4zLs+ptl/b58= sha512-oIqpQbUMPLBbSASoSCJ/+z55y2g6NlBzhTE3V+uDt8TNeJam5GAWoGT/D2u4ihIxE586JPu3c+r4GaUpjUWCAw=="></script>

So I guess what's happening is that somehow iOS 11.3 is checking the checksums of the files, comparing to their "integrity" property and not getting a match. Does anyone know what could be causing that to happen and how it could be fixed?

N.B. Although on the face of it this is about not being able to load resources, I don't think this is to do with the content security policy - I've tried several iterations of the content security policy in /www/index.html - most recently:

default-src * gap://ready file:; style-src 'self' 'unsafe-inline' *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *

None of those seem to have made a difference and I would expect to see an error related to content security policy if it was an issue.

We found the issue with ember-cli-sri - http://blog.isleofcode.com/untitled/

This comment on the ember-cli-sri repo solved it for us. https://github.com/jonathanKingston/ember-cli-sri/issues/33#issuecomment-378448379

xcode, We found the issue with ember-cli-sri - http://blog.isleofcode.com/untitled/. This comment on the ember-cli-sri repo solved it for us. App will stuck at loading screen unable to proceed when there's active tethering device connected onto it. What behavior are you expecting? Stuck on loading screen, suspect on .run method it trying to enforce status bar where in OS level it been turned to tethering status bar.

The problem appears to be with an cordova plugin: cordova-plugin-wkwebview-engine.

I don't fully understand how the plugin works with iOS, but it doesn't seem to play nicely with iOS 11.3. Removing the plugin does the trick. App loads normally after rebuilding.

ios 11.3 loading resources "failed integri |Apple Developer Forums, I have an app that's building fine. it loads on iOS 11.2 and earlier - but on iOS 11.3 it gets stuck at the splash screen. issue on Stackoverflow with more details about the app - it's an ember-cordova app created with Corber. Our app make use of the cordova plugin firebase for crash reports and analytics and push notifications. These wake up the app at random intervals but do not bring it (the app) in foreground mode. We noticed that whenever that happens the next time someone will try to open the app manually it will hang on the spalsh screen.

I'm also encountering this problem. For the moment I worked around it by editing the index.html generated by the build command to just remove the integrity attribute from the script tag. This has gotten it running in the simulator at least. Waiting to see if it gets through appstore review.

ios 12 app stuck on splashscreen · Issue #157 · apache/cordova , I have a problem with my app after upgrading to ios 12. after the redirect not closing i can see behind the splashscreen that the screens correct loading only the splashscreen is all the time open. With ios 11 all is working. _2 Upvotes_ I'm not sure how to make a reproducible case for this as it's a seeming random heisenbug.But sometimes my Cordova app after being suspended by iPhone without use for a while, it will launch with the splash screen, and then either get stuck there perpetually or come to a white blank screen.

Angular Cordova app stucks at splash screen on iOS 13+ · Issue , Bug Report Problem Cordova App is working fine with iOS< 13. But after updating to iOS 13, It is getting stuck at splash screen. What does actually happen? App was jessecarterjs opened this issue on Oct 30, 2019 · 11 comments. Closed  ember-cordova recently started as a fork of ember-cli-cordova by some contributors and maintainers. It only supports Ember 2, and includes added features such as build hooks, native splash screen & icon management, a platform service (e.g. isIOS) and an ember/cordova plugin ecosystem.

Mobile, ember-cli-cordova - A tool for creating hybrid apps using a combination of ember-​cli and ember-screen - A screen size service for Ember liquid-fire-ios - iOS Style LiquidFire Transitions. ember-cordova-splash - ember-cordova splash addon Deployment (178) · □ ember-cli-deploy adapters (11) · □ ember-cli-​deploy  hermwong changed the title Phonegap Desktop App Phonegap Desktop App stuck on loading screen Nov 30, 2016. (cordova-lib@9.0.1) The app is stuck on the loading screen.

lundi 2 avril 2018, import Component from '@ember/component'; export default Component.extend​({ Ember Cordova app stuck on loading screen in iOS 11.3. I am getting white blank screen while launching iOS Cordova app randomly. I am getting following logs on Xcode. 2018-03-28 19:13:32.425 Mobile_iOSApp[36112:484827] Apache Cordova native platform

Comments
  • Just to elaborate, removing 'cordova-plugin-wkwebview-engine' fixed the issue for 11.3 - however testing on iOS 12, the issue returned - and this time around, adding "SRI: { enabled: false }" to the ember-cli-build.js file fixed the issue.
  • Did you also happen to have cordova-plugin-wkwebview-engine installed? Removing that fixed it for me. Good luck!
  • Sorry, I should have mentioned that. I do have cordova-plugin-wkwebview-engine and I made my changes so that I wouldn't have to remove it as I wanted to keep using WKWebview rather than UIWebView