.NET Core API sending broadcasts to connected apps
Hi all.
I'm looking into options for sending location data between an Android app and a .NET Core Web API at a predefined rate (say, every 10 minutes).
At the moment it's working via Android Foreground Services by sending the location to a API endpoint - but that all changes in Android 8.0 and becomes unreliable.
I'm wondering if a better way to do this would be to get the API to broadcast a ping to every mobile device that is currently tracking, and ask for a location report. If they do not receive a location back within a specific timeframe, then the tracking session could be considered terminated.
Has anyone done something similar? I'm currently looking at https://firebase.google.com/docs/cloud-messaging/ to do this.
Thank you.
0 comments:
Post a Comment