Not getting Geofence Enter/Exit event on Socket

Furqan Mughal21 days ago

Firstly, I have login and get session id.
Then get device info through api and store device info.
After that i had created a geofence and link my device with geofence using device id and geofence id.
Now, I'm successfully connected with socket and receiving "positions" & "devices" events in socket.
In my case i want to get event in socket response when i am leaving geofence or entering geofence which i have registered but socket does't give any type of response when i leave or enter registered geofence.
I am trying to implement an Application in Flutter and for now i have connected with server using different api's and successfully getting response on device api, user data api... etc

Anton Tananaev21 days ago

Have you enabled the notification?

Kaloyan Kanev20 days ago

@Anton, I have send two emails before few days to you, did you receive it or I have some problem with my mail server ? Its from office@f*****s.bg

Furqan Mughal20 days ago

@Anton, using this server url,
https://demo.traccar.org/api/
Don't know how to enable notification there.
I am also trying to start server on windows and registered my device on localhost:8082 but ngrok unable to communicate via ngrok given url
http://87c4-72-255-34-127.ngrok-free.app

Anton Tananaev20 days ago

Kaloyan Kanev how is this related to the topic? I did receive emails and responded. If you didn't receive responses, there's probably something wrong with your email service.

Furqan Mughal19 days ago

@Anton Thank you for your help. After enabled the notifications from Traccar Manager App, I am getting Geofence Enter/Exit response from Socket.
Can i get Push Notifications also from Traccar Server on my custom app if i register notifications ? I want to get notification even if my flutter app is closed. Currently for socket i have to open my app or run it in background. In case if my app is closed do Traccar Server notify me that via push notification ?

Anton Tananaev19 days ago

It's whatever you configure in the notification settings.