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

iOS - App Stuck at Splash Screen (ionic & cordova) #2

Open
codesundar opened this issue Aug 30, 2021 · 2 comments
Open

iOS - App Stuck at Splash Screen (ionic & cordova) #2

codesundar opened this issue Aug 30, 2021 · 2 comments

Comments

@codesundar
Copy link
Contributor

Follow the below solution, if your app is struggling on splash screen page

@codesundar
Copy link
Contributor Author

Solution 1:

Remove splash screen plugin & re-add it

ionic cordova plugin rm cordova-plugin-splashscreen
ionic cordova plugin add cordova-plugin-splashscreen

Then rebuild your app

@codesundar codesundar changed the title iOS - Struggling at Splash Screen (ionic & cordova) iOS - App Stuck at Splash Screen (ionic & cordova) Aug 30, 2021
@codesundar
Copy link
Contributor Author

Solution 2:

Put this lines inside config.xml, after <platform name="ios">

<preference name="WKSuspendInBackground" value="false" />
<feature name="CDVWKWebViewEngine">
  <param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
  <string>We use your location for full functionality of certain app features.</string>
</edit-config>

then remove ionic webview plugin & re-add it

ionic cordova platform rm ios
ionic cordova plugin rm cordova-plugin-ionic-webview
ionic cordova plugin add cordova-plugin-ionic-webview
ionic cordova platform add ios

Then build it

ionic cordova build ios

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

1 participant