When having a bad or no network, the platforn.ready() takes a serious long time on iOs and Android ( I did not try on browser)
To compare, the deviceready event of Cordova will always fire after couple of seconds (with Wifi, or no network). But the platform ready of Ionic will not... and if you are waiting for it to change your rootPage or some others codes (like splashscreen.hide(), set the language of the ngx-translate,..., it can take a really really long time (30-60seconds sometimes.., especially if you have not network at all)
What behavior are you expecting?
On deviceready event, I can see (on my app at least), every cordova plugins and ionic components/lazy loading are working well. So what plt.ready is waiting ? I replaced every plt.ready in my app with the deviceready event and the app looks way faster if you do not have a wifi connection (80% of my users).
Maybe there is a reason I am missing.,
Thanking you in advance,
Steps to reproduce:
Cut your internet on your iPhone or simulator
Launch your app
Just see when the platform.ready promise is resolved
Which Ionic Version? 1.x or 2.x
3.x
Run ionic info from terminal/cmd prompt: (paste output below)
Short description of the problem:
When having a bad or no network, the platforn.ready() takes a serious long time on iOs and Android ( I did not try on browser) To compare, the deviceready event of Cordova will always fire after couple of seconds (with Wifi, or no network). But the platform ready of Ionic will not... and if you are waiting for it to change your rootPage or some others codes (like splashscreen.hide(), set the language of the ngx-translate,..., it can take a really really long time (30-60seconds sometimes.., especially if you have not network at all)
What behavior are you expecting?
On deviceready event, I can see (on my app at least), every cordova plugins and ionic components/lazy loading are working well. So what plt.ready is waiting ? I replaced every plt.ready in my app with the deviceready event and the app looks way faster if you do not have a wifi connection (80% of my users).
Maybe there is a reason I am missing., Thanking you in advance,
Steps to reproduce:
Which Ionic Version? 1.x or 2.x
3.x
Run
ionic info
from terminal/cmd prompt: (paste output below)global packages:
local packages:
System: