I am working to achieve a scenario in which i need a background service which runs even app is closed. Work of this service is to access local application Db and sync data with API. If service is written separately in each platform than project files are disposed when app is closed and we don't access these files. how to achieve this scenario? in which we access project files from service even app is closed. Currently i tried following solutions on android platform
1- Make a separate Service in android. (Service run when app is in background and disposed when app closed)
2- Use Alarm Manager and Broadcast Receiver. (Work fine even app is closed, But projects files are not accessible in closed state)
Any Solution for this problem? i need to implement this in all platforms