notificationTokens empty

multififa 3 years ago

i have build original traccar manager
when i log in, from debug i see the token but it is not saved in the user attribute.

i use original repository last version traccar manager an traccar server.

multififa 3 years ago

with the app that I compiled i see in server log only

2023-01-12 13:19:32  INFO: user: 5, action: login, from: xxxx

but with traccar manager dowload google store i see a action login and edit

Anton Tananaev 3 years ago

Which flavor of the app have you built?

multififa 3 years ago

3.4

Anton Tananaev 3 years ago

I asked which flavor you're building.

multififa 3 years ago

regular

Anton Tananaev 3 years ago

Regular flavor does not include any Google services.

multififa 3 years ago

ok thanks :-)
however there are a problem with dipendency in traccar server git version for firebase push notification.
i think the problem is this commit 3fa8f496eab4a3a6e9bfac4a8a8ab9b0456720e0.

firebase require jackson2

Anton Tananaev 3 years ago

Why is that a problem?

multififa 3 years ago

try to send test notification firebase with traccar server branch master

Anton Tananaev 3 years ago

I'll wait for you to tell us.

Antonio Junior 3 years ago

Hello @multififa, or anyone who knows and can help me. What flavor did you use to compile traccar-manager? I compiled
regular flavor and upon login no user notification token is created.
Thanks.

flavorDimensions 'default'
    productFlavors {
        regular {
            isDefault = true
        }
        Google
    }
Anton Tananaev 3 years ago

You have to use the google flavor to have push notifications.

Antonio Junior 3 years ago

Thank you Anton, could you please tell me in which file do I find the logic for inserting the firebase token in the database since it is generated by the Mobile App?
Thanks!

Anton Tananaev 3 years ago

Part of the code is in the native code and some in the web app. Just search for the key.