i guess the problem is that the provider is initialized before the application is bootstrapped completly… im injecting the service in my app.components.ts (main class) in the constructor, i think the issue might be that this way the provider is initialized before the index.html is created, which loads the library
If that’s the issue, you can probably just call the provider after the platform is ready. platform.ready() => this.providerName.methodName();
Edit: Also, don’t put anything in the provider’s constructor or ngOnInit. If you need to initialize the provider, put that code in an initializeProvider() method, and call that method after the platform is ready.