I am using this plugin and although I have managed to start a service I still do not deal very well with old or poorly documented plugins. For example how could I do that using this plugin and with a background service make a GET request or an Alert or something that I can see from the mobile every “x” seconds.
Yes, I talk about push notifications. What you describe is the perfect use case for them.
Why do you think you need a service for this?
Services are hard. They tend to suck because they run in the background all the time, which is why they are so limited on both mobile OS platforms. That is also why not many people (successfully) try to do this with Cordova.
Because they force me, it’s not my idea. Maybe I should start this project in native, but it’s late and I have the time over. Thanks for the help and sorry to be so heavy
In native you have to implement the exact same logic for the service as you now have to with the bgs-core thingie - I linked to the method etc above - didn’t look too complicated. And it will suck in all the same ways (for development and later users).
Compare JSON you got to something you already have
Do things that should be done if conditions are met
But this is not really a Ionic problem any more - you will probably have more luck on a Cordova forum or chat or someting where Android developers hang out. We all use Ionic to not have to handle such stuff