destroy static method

Future<bool?> destroy(
  1. String url
)

Destroys the cached Transistor JSON Web Token used to authorize with the Demo Server at https://tracker.transistorsoft.com or your local instance of background-geolocation-console

Example

// The url the token was registered with.
await TransistorAuthorizationToken.destroy("https://tracker.transistorsoft.com");

// If using a custom instance of Demo Server:
/// await TransistorAuthorizationToken.destroy("http://192.168.0.100:9000");

ℹ️ See also:

Implementation

static Future<bool?> destroy(String url) async {
  return await (_methodChannel.invokeMethod<bool?>(
      'destroyTransistorToken', url));
}