background processing for android and IOS

background processing for android and IOS

I want to do something similar to android background service,with more details:
What i want to do is an application made with unity, that read json from api that add in realtime,e.g: realtime database, and to send push notification on mobile on specific location.
all of the above must be in background service and the app is closed, not pause in the background, but terminated and close, i want it for android and IOS.
Is that possible in unity, if so could you show me how?

Thank you.

From my own research, the best approach to do this is by using custom iOS and Android plugins and loading those into your unity project. Those plugins will run as background services as soon as the application is launched, and can continue running even when it’s closed.

This tutorial is helpful:
http://www.devhelp.me/unity-background-location-service-step-by-step/