Hello everyone Iam using Sinch app for calling services in background and as they have provided with a service and if that service keeps running in the background then i keep getting incoming calls but as par Oreo restrictions its depricated and i dont want to use a foreground service either and keep a notification on , please let me know of how i can solve this problem
Asked
Active
Viewed 260 times
1 Answers
-1
You should be use workmanager or Job schedule . Or use forground Services

Nikhil Vadoliya
- 1,542
- 10
- 17
-
but iam not using any broadcast service its jus a service class given by sinch which does all the work i jus need it running i mean the method inside it which triggers for incmng call running – Rahul Walvekar Feb 23 '19 at 11:09
-
Edit answer please check it – Nikhil Vadoliya Feb 23 '19 at 11:16
-
WorkManager PeriodicWorkRequest Executes request for every 15 minutes only as per its documentation and that i cannot prefer – Rahul Walvekar Feb 23 '19 at 12:44
-
https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/51724971/unique-onetimeworkrequest-in-workmanager&ved=2ahUKEwid4IT1qdTgAhXHfCsKHa7NAB0QFjAAegQIBxAB&usg=AOvVaw3KGfaDB5gg2Dcc3zMVYdB6 – Nikhil Vadoliya Feb 24 '19 at 12:04
-
foreground service needs a notification, but viber, skype, telegram don't use it – user924 Aug 22 '19 at 08:33