Hello there, I'm using firebase to push notification with data is:
{
"notification":
{
"title": "Title notification",
"category": "GENERAL",
"body": "body notification",
"sound": "default"
},
"mutable_content": true,
"data": {
"title": "Title message",
"body": "Body message.",
"idhit": "a043dada-1208-4067-b5b6-50bc8578bfc3",
"gmtdatetimeid": "620989200",
"typehit": 0,
"carnumber": "ABC123",
"alertname": "Unauthorized Vehicle",
"gmtDatetime": "2020/06/05 07:28:30.929",
"latitude":"10.792332496703715",
"longitude":"106.68018372088815"
},
"registration_ids": [
"eBStmdlNfUzJghm1KwpKr-:APA91bGcqODroQnUKKOvJmlg3Vs1ej9Zq-"
]
}
when my app receive data, i want to get GPS of device and compare it with gps from notification.
How do did it, thanks!!!