destroy static method

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

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

Example

// defaults to http://tracker.transistorsoft.com
await TransistorAuthorizationToken.destroy();

// 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));
}