I’m trying to do a provider from this plugin, but i don’t see it in Ionic documentation and i’m not pretty sure if it’s too hard make a service from a plugin for someone who is starting with Ionic (almost three months)
This is the plugin, it’s to create a background service even if the app is closed
The plugin creates a global Javascript object that you would use in a normal Cordova app directly in JS.
You can also use this JS object in your normal Typescript.
You only have to make it known with something like this: declare var Object: any; (after your imports)
You install the plugin. Then the global Javascript object is available in your app. You put the line I showed into the .ts file where you want to use that JS object from the plugin. Then you use it in your code.
Normally you look at the docs of the plugin, whatever they are working with.
But for this one I couldn’t really find docs?
The sample project it would be this: https://github.com/Red-Folder/bgs-sample/blob/master/plugin.xml#L30
So you would make sure cordova can be accessed in your code and then use cordova.plugins.myService like normal JS.