Search code examples
ionic-frameworkpluginsionic3ionic-native

Ionic 3 : native plugins not reloaded with livereload


I am using Ionic 3 for a project with the MSADAL native plugin and I need to attach a token to every requests using the MSADAL token cache and an Http interceptor. But when livereload is done i've got an error in my Chrome console :

'Native: tried accessing the MSADAL plugin but it's not installed

It seems like all the native plugins are not included in the livereload.

So is there a way to include native plugins to be reloaded in a livereload action ?

Thank you for your help.


Solution

  • Try it on a device Android or IOS. Also put your code inside platform.ready();

      constructor(public plt: Platform) {
        this.plt.ready().then((readySource) => {
    
            //here
    
        });
    

    }