Use it like this (if you are using it in the traccar directory like it is as default):
var url = window.location.protocol + '//' + window.location.host;
var token = "YOUR TOKEN HERE";
Hi everyone, I am currently developing a flutter mobile app for displaying the devices and I'm dealing with this.
Can you please tell me where do I get the token from? in the new session response I can only see the "notificationTokens", the "token" field returns as null, what may I be missing?
Please enlighten me, I have hardware background and still have holes of knowledge here!!!
You have to set the token first.
you can do it from traccar gui interface by generating a new user (user account )
Thank you, that was a fast response. I see, I need to generate it using the web interface or send the token in the request when creating the user in which case I need to generate it in the mobile app.
I appreciate your help!!
Can anyone help connecting API websockets using Python?
Hi Anton that was my error !
thank you a lot for your help and all your contribution to this community