Skip to main content

dwebServiceWorker.canOpenUrl()

BFChainPlugindwebServiceWorkercloseLess than 1 minute

Check if the application is already installed. This is generally used when communicating with other apps. The parameter passed in is mmid, which is the appID of the communication app.

Example

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

dwebServiceWorker.canOpenUrl("game.text.com.dweb");

Function signature

canOpenUrl(mmid: $MMID): Promise<$ExterResponse>  

Parameters

  • $MMID

Identity identifier of the app, must end with .dweb, format is ${string}.dweb.

Return value

When the app exists, success is true, otherwise it is false.

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

Platform compatibility

Attribute/Method/EventAndroidIOSDesktop
canOpenUrl

dwebServiceWorker

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