Вопрос

I need to know if I make when the smartphone receives a push notification, this notification isn´t show to user, but the smartphone begin to send to web server the gps location. sorry for my really bad english.

Это было полезно?

Решение

You can do what ever you want when receiving a push notification by the BroadcastReceiver

 @Override
protected void onMessageReceived(Context context, Intent intent) {
    //i suppose sendGPS is the function that let you send your location
    sendGPS();
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top