ionic-team / cordova-plugin-ionic-webview

Web View plugin for Cordova, specialized for Ionic apps.
Apache License 2.0
487 stars 395 forks source link

ionic iOS app stuck on Splash screen #626

Closed prabhashibuddhima closed 3 years ago

prabhashibuddhima commented 3 years ago

Hi,

I have created my ionic v6 mobile app installing cordova-plugin-ionic-webview and when I try to run the app on my device, the app getting stuck on splash screen and no errors are logging. After I remove the plugin and retry it, it works fine. But my app couldn't submit to AppStore due to the UIWebView issue.

devsgtech commented 3 years ago

Update splash screen plugin using the link https://ionicframework.com/docs/native/splash-screen This fixed same issue for me.

prabhashibuddhima commented 3 years ago

This fixed same issue for me.

hi,

I tried this and still having same issue

prabhashibuddhima commented 3 years ago

I have solved the issue by running the below commands to my project directory:

npm install sudo gem install cocoapods pod repo update ionic cordova platform add ios@5.1.0 cordova plugin update cordova-plugin-ionic-webview@latest

then I add the following to my config.xml under ios platform

<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

do not add
<preference name="WKWebViewOnly" value="true" />

and again in project directory,

ionic cordova prepare ios cordova build ios

mjindal92 commented 3 years ago

@prabhashibuddhima

I did follow the above steps but still, my screen was stuck on the splash screen.

Can you please share any other solutions?

Thanks

gleisonkz commented 3 years ago

I'm facing the same problem here, and even after do all the steps metioned by @prabhashibuddhima. stucked on splashscreen

Lesruez93 commented 2 years ago

Im also facing the same issue after installing Firebase authentication plugin

Hassan-Shahriar-1 commented 2 years ago

i am facing same issue. tried everything , none of them work. did anyone solve it?

TongQuangThanh commented 2 years ago

@Hassan-Shahriar-1 I have same issue, do you have any fix worked for your issue?

oschluet commented 2 years ago

If you have this Issue using Firebase Authentication, this will probably fix it:

https://youtu.be/U7RvTTF9dnk?t=2182
https://stackoverflow.com/questions/71062347/how-to-write-authguard-in-ionic-angular-with-angularfire7-that-works-on-ios

In your app.module.ts

change:

provideAuth(() => getAuth()),

to:

provideAuth(() => { if (Capacitor.isNativePlatform()) { return initializeAuth(getApp(), { persistence: indexedDBLocalPersistence, }); } else { return getAuth(); } }),