Find or create a token for the given organization and username.
Organization / company identifier.
Username or device label.
Optionalurl: stringOptional tracker base URL. Defaults to the SDK's built‑in value.
A Promise resolving with a TransistorAuthorizationToken instance.
// Url to demo server.
const url = "http://tracker.transistorsoft.com";
const orgname = "my-company-name";
const username = "my-username";
// Fetch an authoriztion token from server. The SDK will cache the received token.
const token = await
BackgroundGeolocation.findOrCreateTransistorAuthorizationToken(orgname, username, url);
BackgroundGeolocation.ready({
transistorAuthorizationToken: token
})
Destroy the token associated with the given tracker base URL.
Optionalurl: stringTracker base URL. Defaults to the SDK's built‑in value.
Mutates a Config to apply the given Transistor token if present.
The JS implementation typically:
config.transistorAuthorizationTokenconfig.http.url or config.url to "<token.url>/api/locations"config.authorization = { strategy: "jwt", ... }If no transistorAuthorizationToken is found, the config is returned unchanged.
A config that may contain a transistorAuthorizationToken field.
A Config with HTTP + authorization wired to the token, if present.
Transistor Software hosts a demo server at tracker.transistorsoft.com which is designed to consume location data from devices running the Background Geolocation SDK.
You may also run your own instance of Demo Server locally. See background-geolocation-console
The test server is a great way to debug location problems or evalute the SDK's behaviour, since the results can easily be shared with Transistor Software when requesting support.
Example
Viewing Your Tracking Results
To view your tracking results in the browser, use your configured "Organization Name" and visit:
http://tracker.transistorsoft.com/my-organization-name