App rootpage module not called when using ionic serve

i have my app working on android and ios, but want to be able to provide a web interface.

so, testing with ionic serve…

but… the root page .ts module constructor is not called, nor is ionViewDidLoad.

all the examples seem to show it should work…

my root page is a ‘please wait’, cause I have to locate the server that provides the data and have the data filled before navigating to the main application windows… but my server discovery code uses cordova plugins not available in the web presentation…

so, i added code to my constructor, if the web platform, then call the data loader function with a provided server address

but my code never gets called…

Let me guess: ionView-etc hook is in your app.conponent.ts?

These lifecycle hooks dont apply to app.compont.ts (in most configuration) as it does not have a navcontroller

Other reason could be that your stuff is in a provider which is never used, although properly declared

nevermind… i see that my use of ionic/native plugins don’t work in browser mode anyhow…

Native plugin will never work in browser…to test native plugin you have to test your app on simulator or device