Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Stuck on splash screen with iOS 12 #249

Open
egonm12 opened this issue Dec 14, 2018 · 5 comments
Open

Stuck on splash screen with iOS 12 #249

egonm12 opened this issue Dec 14, 2018 · 5 comments

Comments

@egonm12
Copy link
Member

egonm12 commented Dec 14, 2018

We are using Cordova 8 in the new frontend app of de Kudos-o-Matic and with iOS 12 the app gets stuck on the splash screen. There is an open issue for this on the Cordova repo but I think it's good to know this when there is a new Maji project with Cordova 8.

This is the current workaround

// cordova/plugins/cordova-plugin-splashscreen/src/ios/CDVSplashScreen.m

- (void)hide:(CDVInvokedUrlCommand*)command
{
    [self setVisible:NO];
}

And hide the splash screen manually:

cordova/plugins/cordova-plugin-splashscreen/www/splashscreen.js

window.setTimeout(function () {
  navigator.splashscreen.hide();
}, 1000);

EDIT: Just found out we were having this problem with Cordova 7.0.1. as well

@egonm12
Copy link
Member Author

egonm12 commented Dec 14, 2018

I created a fork for this: https://github.com/egonm12/cordova-plugin-splashscreen

@cygvslince
Copy link

Hi,
Thank you for this advice, but could you please explain me how I can do that using phone gap ?
My app updates are refused by apple because of this ...

Thank you in advance

@mario350cc
Copy link

Hi,
I am facing the same issue
window.setTimeout(function () {
navigator.splashscreen.hide();
}, 1000);

Apple rejected my App
how can I solve this

@clanglois421
Copy link

Did apple reject your app because of this code snippet?

window.setTimeout(function () { navigator.splashscreen.hide(); }, 1000);

@mario350cc
Copy link

_From Apple
2. 1 Performance: App Completeness

We discovered one or more bugs in your app when reviewed on iPad running iOS 12.2 on Wi-Fi.

Specifically, we found your app did not load its contents and the activity indicator spun indefinitely after launching the app.

Next Steps

To resolve this issue, please run your app on a device to identify any issues, then revise and resubmit your app for review.

If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.

For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce the issue. For updates, install the new version as an update to the previous version,
then follow the steps to reproduce the issue.

Resources

For information about testing your app and preparing it for review, please see Technical Note TN2431: App Testing Guide.
For a networking overview, please review About Networking._


I have uninstalled cordova-plugin-splashscreen

Than Apple Approved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants