Edit Push Notification Payload

Mohan lal2 days 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 Tananaev2 days ago

Sure. You can change it in the code.

Mohan lal2 days ago

Can you suggest me code file or some location?
Please

Anton Tananaev2 days ago

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

Mohan lal2 days 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 Tananaev2 days ago

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

Mohan lal2 days 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.