Edit Push Notification Payload

Mohan lal a month ago

Hello,

I want to edit Push Notification payload now it's sending in this way:

{ "type": "ignitionOn", "deviceId": "12" }

Is it any way so I can edit this payload?

Thanks

Anton Tananaev a month ago

Sure. You can change it in the code.

Mohan lal a month ago

Can you suggest me code file or some location?
Please

Anton Tananaev a month ago

Search for "firebase" in the code and you'll find it.

Mohan lal a month ago

I checked Traccar Web code but it could not find. When I try to find "firebase" then got src/resources/l10n folder this is a language base.
I checked src folder but it could not.
Is it possible to you provide me location?

Anton Tananaev a month ago

Why would it be in the web code? It's obviously in the server code.

Mohan lal a month ago

OK Got it. it's a jar file which is compiled file. Server code is available on github but I can not change it.
because it's in JAVA.

Thanks for your support.