Notificación Push le llega a usuarios que no comparten vehículo

Manuel Suárez6 years ago

Hello good afternoon, correct me if I leave, please, when I create a Notification and I order it to be sent by Push message, and I assign it to a device within a specific user, this notification should be sent to the user linked to the account. ?, but it reaches all users within my server even those who can not even see devices because they are new users without assigned devices.

I guess it must be a configuration error of mine, could you give me some guidance here please.
I only have this configuration in traccar.xml for Push notifications

<entry key='notificator.types'>web,mail,firebase</entry>
<entry key='notificator.firebase.key'>xxxxxxxxxxxxxxxxxxxx</entry>
Anton Tananaev6 years ago

Like any other notifications, it will be sent to specific user, not all users.

Manuel Suárez6 years ago

Just that is the problem that I am having that is sent to all the users that I have registered in the server and I do not understand why, and it only happens with Push notifications since with e-mail it works well

Anton Tananaev6 years ago

You need to check user tokens in account attributes. Traccar uses those to send messages.

Manuel Suárez6 years ago

thought that the conflict was on that side and an apology if my comment was silly or very new, but I did not understand the use that is given to the token inside traccar, I looked in the forum and in the documentation, but I could not solve my can you give me a little guidance on how to use the token please?

Anton Tananaev6 years ago

I'm not talking about user token. I'm talking about device tokens that should be in attributes.

Manuel Suárez6 years ago

Ok I understand but I can not find where to configure a token in the attributes of the slide an apology again but I'm just getting familiar with traccar and that's why so many questions are asked in advance

https://ibb.co/k0dg2pb

Anton Tananaev6 years ago

It's configured automatically by the app.

Manuel Suárez6 years ago

ok but then where can I see if it's a device token problem, or I'm really lost and I do not understand what you're trying to tell me

Anton Tananaev6 years ago

Do you see token(s) in the user attributes or not?

Manuel Suárez6 years ago

Yes, I'm sure it's right here?

https://ibb.co/6DTjM2K

Anton Tananaev6 years ago

I would recommend you to re-read what I said earlier more carefully.

I'm not talking about user token. I'm talking about device tokens that should be in attributes.

Manuel Suárez6 years ago

ok, with fear that my answer again is not adequate and reading your previous comment I can say that "no" does not have token my device

https://ibb.co/hgxM8P4

Anton Tananaev6 years ago

OK, it means that your app has not registered with the server. How do you get notifications then? Are you using official Firebase implementation?

Manuel Suárez6 years ago

if nothing has been modified but logos we keep traccar and its applications without modifficacion some in the code, to traccar manajer only added the google-service.json file and compile that is all I did with the app