FCM is not working

wsys4 years ago

Hello, I use a VPS server with CentOS7 and it works perfectly, but I can't get firebase to work to receive a push message,
my server.
<entry key ='notificator.types'>web,mail,firebase</entry>
<entry key ='notificator.firebase.key'>my-firebase-key</entry>

Token
AndroidStudio
WEB message

I downloaded the traccar manager, added the json file of my firebase project inside the APP folder and generated the APK in the android studio, installed it on my smartphone with android 9, but I do not receive the test notifications and the others added, my token is generated in user attributes, I only receive messages via the web but not on the cell phone, could someone share how it is done? thanks.

Anton Tananaev4 years ago

It looks like you are building wrong flavor. You need to build Google one.

wsys4 years ago

Anton, an information please, do I need to have a google developer account to test this app with firebase, or can I compile and generate the apk and install it on my phone to work?

Anton Tananaev4 years ago

You don't need to publish the app for firebase to work. Note that there are better resources for non Traccar specific questions like that.