Skip to main content

dwebServiceWorker.restart()

BFChainPlugindwebServiceWorkerrestartLess than 1 minute

Restart the backend and frontend of the application. The effect is that the app closes and reopens.

The return value of this function can be ignored because the app has already been closed.

Example

import { dwebServiceWorker } from "@plaoc/plugins";

dwebServiceWorker.restart();

Function signature

restart(): Promise<$DwebResult>

Parameters

  • None

Return value

Here success is generally true. If an error occurs, it is a more serious error. You can submit an issue and describe the running environment.

  • $DwebResult
interface $DwebResult {
  success: boolean;
  message: string;
}

Platform compatibility

Attribute/Method/EventAndroidIOSDesktop
restart

dwebServiceWorker

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7