Want to Implement Push Notifications - using traccar server on my Flutter App

Furqan Mughal 10 days ago

Hey,
Please guide me to put me on track,
I want to register my Flutter App on Traccar Server to receive push notifications which Traccar server sending on Traccar manager App.
I want to get that same notifications like Enter/Exit Zones...etc
Some RND done by me:

  1. Enable push notification on Traccar Server in default.json in notification section under push add Firebase Server key.
  2. Register App with Firebase and get .json for android and .plist for ios.
  3. Get FCM and send in Post: api/users/{userid}/tokens/
    {
    type: "firebase",
    token: "device_fcm_token"
    }

Are these steps are valid or did i am on wrong track ?

Furqan Mughal 3 days ago

Can i register Traccar Push Notification with my Flutter App's (Android & iOS)?
Anyone ?

Anton Tananaev 3 days ago

Yes, you can.

Furqan Mughal 3 days ago

Last thing, Can i mute / unmute them from my Flutter app.
Basically we are creating a Notification Settings Screen so that user can select which type of notifications he wants from Server and mute others.
Also this too possible ?

Anton Tananaev 3 days ago

You can delete them and add, of course.

Furqan Mughal 3 days ago

Ok Thanks
Do i have to create a firebase project for this ?

Anton Tananaev 3 days ago

Yes, of course.

Furqan Mughal 3 days ago

Ok Thanks