Push notification not working

techguru6 years ago

we have configured Push notification from firebase and added Web APi key in Configration file, is there anyway we can get logs and trace why our android app is not getting notifications

Manuel Suárez6 years ago

you should not enter the api key to your configuration file but rather the web key

techguru6 years ago

I have entered Server Key & Web key both seperately and then restarted it, but it doesnt work

Manuel Suárez6 years ago

and have you modified the source code of traccar manager to integrate "google-services.json"?

techguru6 years ago

if i send push notification via fire base i am getting that.

Manuel Suárez6 years ago

not this file you get when you create your project in firebade, you integrate it with your application with android studio to compile it

Manuel Suárez6 years ago
Anton Tananaev6 years ago

Have you built and published your own mobile apps?

techguru6 years ago

I have built both ios and android manager app, on ios app in xcode console it shows error

5.12.0 - [Firebase/InstanceID][I-IID003009] Failed to fetch default token Error Domain=com.firebase.iid Code=1003 "(null)"

Is there anyway we can debug release server and retrvie notification logs

Anton Tananaev6 years ago

If there was an error, you will see it in the log file.

techguru6 years ago

log file dnt show any error

Anton Tananaev6 years ago

Then I guess firebase returned success. Check firebase console. Maybe it has some information.

techguru6 years ago

Firebase console dnt have any information, if i send notification from firebase it goes

Anton Tananaev6 years ago

I guess your user doesn't have device token. Check user attributes.

Jorge Jim6 years ago

Excuse me, I have the same problem. I do not know what you mean with "I guess your user doesn't have device token. Check user attributes." Where can I do this?
I send notifications from firebase, but I don't know why I cannot from traccar.

Is there anyone who solved this issue?

Thanks in advance...