ionic2: network connectivity check during splash screen
问题 I've been trying hard to figure out how to check for network connectivity while the splashscreen is being displayed.I've searched for the code in many places but most of those articles are outdated. I followed the tutorial that's mentioned here:https://www.thepolyglotdeveloper.com/2016/01/determine-network-availability-in-an-ionic-2-mobile-app/ But then I found out that Network.connection is deprecated and has been replaced by Network.type on the ionic2 website. So I've replaced the word