How to configure Push Notification on Custom Mobile App

Mahdi3 years ago

Hey guys, I'm trying to build my custom mobile app using traccar Rest API, now everything worked just fine until i wanted to configure the Push Notif using Firebase.
What i ve done:
1- dev a mobile app (all is good)
2- create FireBase account, and configure my app to receive Notification from the firebase(all is good)
3- now i want to receive notif from traccar server, the question that how am i going to connect my firebase account to traccar so that i can see my notif coming to my custom mobile app ?

Anton Tananaev3 years ago

Just configure your server Firebase key in Traccar.

Mahdi3 years ago

Thanks anton for your quick answer, just to confirm:

1- are talking about this part of the official documentation?
https://drive.google.com/file/d/1tLHQ0tIdPGL-43CtVx1l7gtDvKfi3qWJ/view?usp=sharing
2- is any think to add as attributes to my connected user?
3- if you know any hint that could help please share it with us?

Anton Tananaev3 years ago

Yes, you also need to set user attribute called notificationTokens or something like that. Check what official app does.

Mahdi3 years ago

Okay, thanks, I will try that and I will keep you updated