Freezes on ios11


#1

Hi. I have the app on ionic 2 and angularJs. Everything works fine except ios11 (on emulator also everything is ok). There are no steps for this freezes. It’s really random. Where can be the problem and how I can solve it?
There is my package.json:

{
  "name": "ionfullapp",
  "version": "1.2.0",
  "description": "ionFullApp: An Ionic starter project",
  "dependencies": {
    "async": "^1.4.0",
    "bower": "^1.3.3",
    "cordova": "^7.1.0",
    "cordova-android": "^6.2.3",
    "cordova-clipboard": "^1.1.0",
    "cordova-config": "^0.7.0",
    "cordova-config-utils": "^2.3.0",
    "cordova-ios": "^4.5.3",
    "cordova-plugin-actionsheet": "^2.3.3",
    "cordova-plugin-apprate": "^1.3.0",
    "cordova-plugin-camera": "^2.2.0",
    "cordova-plugin-clipboard": "^1.0.0",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-console": "^1.1.0",
    "cordova-plugin-device": "^1.1.6",
    "cordova-plugin-dialogs": "^1.3.3",
    "cordova-plugin-email-composer": "^0.8.11",
    "cordova-plugin-extension": "^1.5.2",
    "cordova-plugin-file": "^4.3.3",
    "cordova-plugin-file-transfer": "^1.6.3",
    "cordova-plugin-geolocation": "^1.0.1",
    "cordova-plugin-globalization": "^1.0.7",
    "cordova-plugin-image-picker": "^1.1.3",
    "cordova-plugin-inappbrowser": "^1.7.1",
    "cordova-plugin-insomnia": "^4.3.0",
    "cordova-plugin-ionic-keyboard": "^2.0.4",
    "cordova-plugin-mixpanel": "^2.3.5",
    "cordova-plugin-network-information": "^1.3.3",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.3",
    "cordova-plugin-webserver": "^1.0.3",
    "cordova-plugin-whitelist": "^1.3.2",
    "cordova-plugin-x-socialsharing": "^5.2.1",
    "cordova-plugin-zip": "^3.1.0",
    "cordova-sqlite-storage": "^0.8.5",
    "es6-promise-plugin": "^4.1.0",
    "gulp": "^3.5.6",
    "gulp-angular-templatecache": "^1.5.0",
    "gulp-intercept": "^0.1.0",
    "gulp-sass": "^2.3.2",
    "gulp-sourcemaps": "^1.5.2",
    "gulp-util": "^2.2.14",
    "ionic": "^3.18.0",
    "jsonfile": "^3.0.1",
    "lodash": "^4.17.4",
    "moment": "^2.18.1",
    "node-sass": "^4.6.0",
    "plist": "^2.1.0",
    "require-dir": "^0.3.0",
    "shelljs": "^0.3.0",
    "xcode": "^1.0.0"
  },
  "devDependencies": {
    "del": "^1.2.0",
    "gulp-flatten": "^0.1.1",
    "gulp-if": "^1.2.5",
    "gulp-intercept": "^0.1.0",
    "gulp-json-editor": "^2.2.1",
    "gulp-minify-css": "^1.2.0",
    "gulp-ng-annotate": "^1.1.0",
    "gulp-ng-constant": "^0.3.0",
    "gulp-preprocess": "^1.2.0",
    "gulp-read": "0.0.1",
    "gulp-rename": "^1.2.2",
    "gulp-shell": "^0.4.2",
    "gulp-to-json": "^1.0.1",
    "gulp-uglify": "^1.2.0",
    "gulp-useref": "^1.2.0",
    "jshint": "^2.8.0",
    "minimist": "^1.1.2",
    "mv": "^2.1.1"
  },
  "cordovaPlugins": [
    "cordova-plugin-console",
    "cordova-plugin-device",
    "cordova-plugin-dialogs",
    "cordova-plugin-globalization",
    "cordova-plugin-extension",
    "es6-promise-plugin",
    "cordova-plugin-inappbrowser",
    "cordova-plugin-whitelist",
    {
      "locator": "https://github.com/katzer/cordova-plugin-email-composer.git",
      "id": "cordova-plugin-email-composer"
    },
    "cordova-plugin-geolocation",
    "cordova-plugin-file",
    "cordova-plugin-compat",
    "cordova-plugin-file-transfer",
    "cordova-plugin-zip",
    "cordova-sqlite-storage",
    "cordova-plugin-statusbar",
    "cordova-plugin-network-information",
    "cordova-plugin-mixpanel",
    {
      "locator": "https://github.com/EddyVerbruggen/cordova-plugin-actionsheet.git",
      "id": "cordova-plugin-actionsheet"
    },
    "cordova-plugin-camera"
  ],
  "cordovaPlatforms": [
    "android",
    "ios",
    {
      "platform": "April_UAT1",
      "version": "",
      "locator": "April_UAT1"
    },
    {
      "platform": "ios",
      "version": "",
      "locator": "ios"
    }
  ],
  "cordova": {
    "plugins": {
      "cordova-plugin-actionsheet": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-console": {},
      "cordova-plugin-device": {},
      "cordova-plugin-dialogs": {},
      "cordova-plugin-extension": {},
      "cordova-plugin-file": {},
      "cordova-plugin-file-transfer": {},
      "cordova-plugin-geolocation": {},
      "cordova-plugin-globalization": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-insomnia": {},
      "cordova-plugin-mixpanel": {},
      "cordova-plugin-network-information": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-x-socialsharing": {},
      "cordova-plugin-zip": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-email-composer": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-clipboard": {},
      "cordova-plugin-apprate": {}
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
}

There is my config.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.tsc.i3p_demo" ios-CFBundleVersion="171116_180204" version="2.2.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>i3p demo</name>
    <description>
        The Stake Holder Company
    </description>
    <author email="support@thestakeholdercompany.com" href="www.thestakeholdercompany.com">
        The Stake Holder Company
    </author>
    <content src="index.html" />
    <access origin="*" />
    <access launch-external="yes" origin="tel:*" />
    <access launch-external="yes" origin="mailto:*" />
    <preference name="webviewbounce" value="false" />
    <preference name="UIApplicationExitsOnSuspend" value="false" />
    <preference name="UIWebViewBounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="Orientation" value="portrait" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="2000" />
    <preference name="LSUIPresentationMode" value="0" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="AndroidPersistentFileLocation" value="Compatibility" />
    <preference name="TopActivityIndicator" value="white" />
    <preference name="StatusBarStyle" value="lightcontent" />
    <preference name="intercom-app-id" value="your_app_id" />
    <preference name="intercom-ios-api-key" value="ios_sdk-..." />
    <preference name="intercom-android-api-key" value="android_sdk-..." />
    <preference name="TSCProjectKey" value="i3p-demo" />
    <preference name="TSCDeployDir" value="demo/i3p" />
    <platform name="android">
        <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
        <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
        <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
        <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
        <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
        <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
        <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
        <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
        <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
        <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
        <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
    </platform>
    <platform name="ios">
        <config-file parent="TSCDeployDir" platform="ios" target="*-Info.plist">
            <string>demo/i3p</string>
        </config-file>
        <config-file parent="TSCProjectKey" platform="ios" target="*-Info.plist">
            <string>i3p-demo</string>
        </config-file>
        <config-file parent="Icon file" platform="ios" target="*-Info.plist">
            <string>icon.png</string>
        </config-file>
        <preference name="KeyboardDisplayRequiresUserAction" value="false" />
        <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
        <framework src="CFNetwork.framework" />
        <framework src="Foundation.framework" />
        <framework src="Security.framework" />
        <framework src="SystemConfiguration.framework" />
        <framework src="libicucore.dylib" />
        <framework src="libicucore.tbd" />
        <icon height="57" src="resources/ios/icon/icon.png" width="57" />
        <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
        <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
        <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
        <icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
        <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
        <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
        <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
        <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
        <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
        <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
        <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
        <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
        <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
        <icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
        <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
        <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
        <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
        <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
        <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
        <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
        <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
        <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
    </platform>
    <icon src="resources/ios/icon/icon-small@3x.png" />
    <allow-navigation href="*" />
    <allow-intent href="*" />
    <engine name="android" spec="^6.2.3" />
    <engine name="ios" spec="^4.5.3" />
    <plugin name="cordova-plugin-actionsheet" spec="^2.3.3" />
    <plugin name="cordova-plugin-camera" spec="^2.2.0" />
    <plugin name="cordova-plugin-console" spec="^1.1.0" />
    <plugin name="cordova-plugin-device" spec="^1.1.6" />
    <plugin name="cordova-plugin-dialogs" spec="^1.3.3" />
    <plugin name="cordova-plugin-extension" spec="^1.5.2" />
    <plugin name="cordova-plugin-file" spec="^4.3.3" />
    <plugin name="cordova-plugin-file-transfer" spec="^1.6.3" />
    <plugin name="cordova-plugin-geolocation" spec="^1.0.1" />
    <plugin name="cordova-plugin-globalization" spec="^1.0.7" />
    <plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" />
    <plugin name="cordova-plugin-insomnia" spec="^4.3.0" />
    <plugin name="cordova-plugin-mixpanel" spec="^2.3.5" />
    <plugin name="cordova-plugin-network-information" spec="^1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="^2.2.3" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
    <plugin name="cordova-plugin-x-socialsharing" spec="^5.2.1" />
    <plugin name="cordova-plugin-zip" spec="^3.1.0" />
    <plugin name="cordova-sqlite-storage" spec="^0.8.5" />
    <plugin name="cordova-plugin-email-composer" spec="^0.8.11" />
    <plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.4" />
    <plugin name="cordova-plugin-clipboard" spec="^1.0.0" />
    <plugin name="cordova-plugin-apprate" spec="^1.3.0" />
</widget>

#2

Managed to solve this problem with installing ionic platform add ios@4.5.3 and adding manually
in my config.xml


#3

I met the same problem. Updating to the latest cordova iOS platform can solve the issue, but will no longer support iOS8。Is there any other way to fix this issue?