Have you successfully tested firebase with Traccar Manager? If not, what did you use?
What kind of push notifications are you expecting in web platform? Push notifications are only for Traccar Manager app.
Hi Anton,
1-Have you successfully tested firebase with Traccar Manager? If not, what did you use?
I tested it on a mobile application that I devolved on Android Studio and installed on my mobile phone
2- What kind of push notifications are you expecting in web platform? Push notifications are only for Traccar Manager app:
just when I click on the icon "Send Test Notification" I do not receive the notification on the application that I have devoloped
Check user attributes to see if you have a correct token there. If you do, there must be configuration issue with your setup.
Anton just a Question how to check user attribute, i have same issue and i have checked from DB user attribute table its empty
From the UI you just click "attributes" button from the user account settings. If it's empty, it means that your Traccar Manager app hasn't registered with your server properly. In this case you obviously won't be able receive anything because server doesn't know your device token.
Many thank
I can solve the problem and here is what I did:
1- download the source code of TRACCAR MANAGER
2- modify it by linking it to our firebase platform/ Project
3- Compile and build a new APK file( NabilTraccarManager.apk )
4-install it on my smart phone
5- do a test
Result OK
NB: The token is automatically installed on the attributes of the user which allows us to receive a notification for each event
@Nabil
Can you share any screenshot where i can see token in attributes?
@ techguru
Here are four images to explain: step by step 1 to 4
1- https://uploaddeimagens.com.br/imagens/p1-jpg-6a72b371-bd0f-42e6-9856-422c3b872abb
2- https://uploaddeimagens.com.br/imagens/p2-jpg-5a9fa8bc-6b87-478b-9900-036511583786
3- https://uploaddeimagens.com.br/imagens/p3-jpg-00dfb3a2-4fd1-4961-bf54-49debc6edbdc
4- https://uploaddeimagens.com.br/imagens/p4-jpg-69416081-3b18-45ef-af0d-3edc3834315f
Hi Nabil,
Thanks for Detail screenshot i checked Notification token is missing
Hi,
this token is created automatically By TRACAR SERVER during the first connection of My TRACCAR MANAGER .
It's specific to my device
Once your TRACAR MANAGER connects to your TRACAR server, you will see that it is automatically added to your user attributes .
this "Notificationtoken" will be specific to your mobile phone
@Nabil public again the pics, plis
Hi! A server can be configured to send notifications to several TRACCAR-MANAGER, each one with a different user, with a different notificatoken ????
That's how it works it works by default, obviously. Each user receives their own notifications.
OH, so i have to see configuration for notification! thx for the great work!!!
Hi,
I can send push notifications from the firebase platform (FCM) to my phone without any problem.
I have entered all the necessary information on the configuration file "traccar.xml", but it does not work when I test either by the traccar web platform or TRACCAR MANAGER application.
here is what I did:
<entry key = 'notificator.types'> web, mail, firebase </ entry> <entry key = 'notificator.firebase.key'> my server key </ entry>
why does not it work? , who have already work on this project to help me please?
thank you in advance