kabisa / maji

Maji is a framework to build great hybrid mobile apps.
https://www.majimobile.com/
MIT License
18 stars 10 forks source link

Stuck on splash screen with iOS 12 #249

Open egonm12 opened 5 years ago

egonm12 commented 5 years ago

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 commented 5 years ago

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

cygvslince commented 5 years ago

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 commented 5 years ago

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

Apple rejected my App how can I solve this

clanglois421 commented 5 years ago

Did apple reject your app because of this code snippet?

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

mario350cc commented 5 years ago

_From Apple

  1. 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