Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransistorAuthorizationToken

Response object returned by BackgroundGeolocation.findOrCreateTransistorAuthorizationToken for configuring the SDK's Authorization with Transistor Software's Demo Server at http://tracker.transistorsoft.com.

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
// Url to demo server.
let url = "http://tracker.transistorsoft.com";
let orgname = "my-company-name";
let username = "my-username";

// Fetch an authoriztion token from server.  The SDK will cache the received token.
let token = await
  BackgroundGeolocation.findOrCreateTransistorAuthorizationToken(orgname, username, url);

BackgroundGeolocation.ready({
  transistorAuthorizationToken: token
})

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

Hierarchy

  • TransistorAuthorizationToken

Index

Properties

accessToken

accessToken: string

The authorization token to provide to Authorization.accessToken

example
BackgroundGeolocation.ready({
 authorization: {
   accessToken:
 }
});

expires

expires: number

The expiry time of the Authorization.accessToken

refreshToken

refreshToken: string

The token used to request to provide to Authorization.refreshToken

Optional url

url: string

The url to the Transistor Demo server where this token came from. Read only

Generated using TypeDoc