Deeplinking question about lib/configuration_service.dart

Antony 10 months ago

Why isn't there an option to also set server url in lib/configuration_service.dart via a url string parameter ?

Anton Tananaev 10 months ago

There is.

Antony 10 months ago

Hmm it might be that I missed it while skimming through the code. Thanks one more time for implementing this very useful feature that will be put to use right away :D

Antony 10 months ago

Can you please post a template url (an example) to configure traccar with a url here for anyone who might not know how to do it and check the forum? will it be traccar.org?url=xyz&id=string&accuracy=Highest& distance=number&interval=number&angle=number&heartbeat=number&fastestInterval=boolean&buffer=boolean&wakeLock=boolean&stopDetection=boolean

Where
url : is the server url to be passed
id: is the device id which can be a string
accuracy : one of values from Highest, High, Medium, Low
distance: an integer number
fastestInterval: true or false
buffer: true or false
wakeLock: true or false
stopDetection: true or false

Anton Tananaev 10 months ago

An example URL:

org.traccar.client://config?url=https://demo.traccar.org&id=test123&interval=30
Antony 10 months ago

Ok. Thanks

tw2006 10 months ago

IF I read correctly the commit, It's working from 9.6.1 version, correct? Actually on google play there is 9.6.0

Anton Tananaev 10 months ago

Both should work.

tw2006 10 months ago

I tried sending an email with an hyperlink to my account but it doesn't work. It open on google chrome instead traccar client (9.6.0)
I tried with org.traccar.client://config?url=https://demo.traccar.org&id=test123&interval=30

AJ4Cf7AuH2.png

Anton Tananaev 10 months ago

Not sure email support these kinds of links. I tried it using direct intent.

tw2006 10 months ago

I don't understand how to test and how i can share the configuration link with my users

Anton Tananaev 10 months ago

You need to send it as an intent somehow.

Gino last month

Works on Android using this scheme: <a href="intent://config?url=https://demo.traccar.org&id=test123&interval=30#Intent;scheme=org.traccar.client;package=org.traccar.client;end"> Configurar Traccar Client </a>

Gino last month

On IOS: <a href="org.traccar.client://config?url=https://demo.traccar.org&id=test123&interval=30"> Configura Traccar IOS </a>