I can currently run a location polling class to let the server know where a device is on FCM receipt, but only while the App is open it runs through the class perfectly. While the phone is not on main screen I can only send the push notification through SendNotification(..) within the override void OnMessageReceived(..) class. I would like to call specific location class to run while the App is in the background. Would I do this using a service? How can I run specific code from that point? I tried it to log to a text file but it does nothing, just displays the push notification.
Would I try to call the method through an intent on FCM receipt?
Any guidance would be appreciated!