npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hylid-bridge

v4.0.7

Published

Unite Api For MiniProgram Project

Downloads

1,135

Readme

hylid-bridge

Unite Api For MiniProgram Project.

Description

For mini programs that are launched to different native apps, they run on different containers. The JSAPIs that these mini programs can call may vary. This package can solve this problem.

Install

npm i hylid-bridge --save

Usage

Use in Modern Web Project

You need import method form hylid-bridge library and call it instead of according to my global namespace.

import { alert } from 'hylid-bridge';

Page({
  alert() {
    alert({
      content: 'hylid-bridge alert',
    });
  },
});

Use in Plain HTML

<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdn.marmot-cloud.com/page/hylid-bridge/umd/1.0.0/index.js"></script>
  </head>
  <body>
    <script>
      my.alert({
        content: 'hylid-bridge',
      });
    </script>
  </body>
</html>

refer: How to transform an HTML 5 mobile app to an HTML 5 mini program

API

The following table lists the latest JSAPIs that are supported in JS bridge, and the API list will be constantly updated.

MiniProgram

| API | demo | gcash | tngd | alipay | chope | alipayhk | dana | truemoney | wechat | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | |addFatigueAction|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |addPhoneContact|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |alert|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |apDisableJSAPI|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |appxrpc|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |APRegionRPC|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |batchQueryCdpSpaceInfo|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |chooseImage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |choosePhoneContact|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |clearStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |clearStorageSync|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |closeBluetoothAdapter|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |closeSocket|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |confirm|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |connectBLEDevice|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |connectSocket|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |createAnimation|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |createWebViewContext|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |datePicker|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |disconnectBLEDevice|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |downloadFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |exitApp|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getAppIdSync|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getAppToken|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getAuthCode|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getBatteryInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getBLEDeviceCharacteristics|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getBLEDeviceServices|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getBluetoothAdapterState|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getBluetoothDevices|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getClipboard|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getComponentAuth|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getConnectedBluetoothDevices|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getFileInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getImageInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getLocation|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getNetworkType|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getOpenUserInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getPaymentCode|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getPhoneNumber|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getSavedFileInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getSavedFileList|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getScreenBrightness|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getServerTime|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getSetting|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getSiteInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getStorageSync|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getSystemInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getSystemInfoSync|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |hideBackHome|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |hideKeyboard|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |hideLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |hideNavigationBarLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |hideTabBar|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |hideToast|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |inquireQuote|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |isInstalledApp|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |makePhoneCall|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |multiLevelSelect|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |navigateBack|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |navigateBackMiniProgram|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |navigateTo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |navigateToBizScene|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |navigateToMiniProgram|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |notifyBLECharacteristicValueChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offAccelerometerChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offBLECharacteristicValueChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offBLEConnectionStateChanged|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offBluetoothAdapterStateChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offBluetoothDeviceFound|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offCompassChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offMemoryWarning|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offSocketClose|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offSocketError|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offSocketMessage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offSocketOpen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |offUserCaptureScreen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onAccelerometerChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onBLECharacteristicValueChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onBLEConnectionStateChanged|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onBluetoothAdapterStateChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onBluetoothDeviceFound|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onCompassChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onMemoryWarning|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onSocketClose|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onSocketError|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onSocketMessage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onSocketOpen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |onUserCaptureScreen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |openBluetoothAdapter|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |openDocument|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |openSchemeWithBacking|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openSetting|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |pageScrollTo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |paySignCenter|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |previewImage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |prompt|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |readBLECharacteristicValue|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |redirectTo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |regionFetchAllApps|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |regionSearchAppsByKeywords|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |reLaunch|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |removeSavedFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |removeStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |removeStorageSync|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |request|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |rpc|✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | |saveFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |saveImage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |scan|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |sendSocketMessage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setBackgroundColor|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setCanPullDown|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setClipboard|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setKeepScreenOn|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setNavigationBar|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setOptionMenu|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |setScreenBrightness|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setStorageSync|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |setTabBarStyle|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |showActionSheet|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |showAuthGuide|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |showLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |showNavigationBarLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |showToast|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |signContract|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |startApp|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |startBizService|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |startBluetoothDevicesDiscovery|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |startPullDownRefresh|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |stopBluetoothDevicesDiscovery|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |stopPullDownRefresh|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |switchTab|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |thirdPartyAuthForAc|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |tradePay|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |crossPay|❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | |uploadApdidToken|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |uploadFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |vibrate|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |watchShake|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |writeBLECharacteristicValue|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getLaunchOptionsSync|❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | |createSelectorQuery|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |canIUse|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |getStorageInfo|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getStorageInfoSync|✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | |showSharePanel|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |hideOptionButton|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getCurrentLanguage|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openURL|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openWebURL|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openInApp|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openOtherApp|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openInBrowser|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openPayCodePage|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openApPayCodePage|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openScanPage|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |createWithoutAuthRpc|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |rpcWithAuth|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getAppId|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getCurrentPages|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getSDKVersion|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |defineRuntimeConfig|❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | |rpcWithAuthAPlus|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |easyShare|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |homeAddAppToMyApps|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |homeCanAddAppToMyApps|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |postNotification|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |addNotifyListener|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |removeNotifyListener|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getMainSelectedCity|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |chooseDistrict|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |popWindow|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |setTransparentTitle|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |

HTML5

| API | demo | gcash | tngd | alipay | chope | alipayhk | dana | truemoney | mpay | toss | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | |addFatigueAction|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |addPhoneContact|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |alert|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |apDisableJSAPI|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |appxrpc|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |APRegionRPC|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |batchQueryCdpSpaceInfo|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |chooseImage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |choosePhoneContact|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |clearStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |clearStorageSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |closeBluetoothAdapter|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |closeSocket|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |confirm|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |connectBLEDevice|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |connectSocket|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |createAnimation|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |createWebViewContext|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |datePicker|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |disconnectBLEDevice|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |downloadFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |exitApp|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getAppIdSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getAppToken|✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | |getAuthCode|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |getBatteryInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getBLEDeviceCharacteristics|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getBLEDeviceServices|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getBluetoothAdapterState|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getBluetoothDevices|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getClipboard|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getComponentAuth|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getConnectedBluetoothDevices|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getFileInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getImageInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getLocation|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getNetworkType|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getOpenUserInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getPaymentCode|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getPhoneNumber|✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getSavedFileInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getSavedFileList|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getScreenBrightness|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getServerTime|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getSetting|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getSiteInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |getStorageSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getSystemInfo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getSystemInfoSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |hideBackHome|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |hideKeyboard|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |hideLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |hideNavigationBarLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |hideTabBar|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |hideToast|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |inquireQuote|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |isInstalledApp|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |makePhoneCall|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |multiLevelSelect|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |navigateBack|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |navigateBackMiniProgram|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |navigateTo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |navigateToBizScene|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |navigateToMiniProgram|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |notifyBLECharacteristicValueChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offAccelerometerChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offBLECharacteristicValueChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offBLEConnectionStateChanged|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offBluetoothAdapterStateChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offBluetoothDeviceFound|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offCompassChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offMemoryWarning|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offSocketClose|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offSocketError|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offSocketMessage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offSocketOpen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |offUserCaptureScreen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onAccelerometerChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onBLECharacteristicValueChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onBLEConnectionStateChanged|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onBluetoothAdapterStateChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onBluetoothDeviceFound|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onCompassChange|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onMemoryWarning|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onSocketClose|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onSocketError|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onSocketMessage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onSocketOpen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |onUserCaptureScreen|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |openBluetoothAdapter|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |openDocument|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |openSchemeWithBacking|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |openSetting|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |pageScrollTo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |paySignCenter|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |previewImage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |prompt|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |readBLECharacteristicValue|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |redirectTo|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |regionFetchAllApps|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |regionSearchAppsByKeywords|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |reLaunch|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |removeSavedFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |removeStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |removeStorageSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |request|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |rpc|✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |saveFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |saveImage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |scan|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |sendSocketMessage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |setBackgroundColor|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |setCanPullDown|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |setClipboard|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |setKeepScreenOn|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |setNavigationBar|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |setOptionMenu|✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |setScreenBrightness|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |setStorage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |setStorageSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |setTabBarStyle|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |showActionSheet|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |showAuthGuide|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |showLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |showNavigationBarLoading|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |showToast|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |signContract|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |startApp|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |startBizService|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |startBluetoothDevicesDiscovery|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |startPullDownRefresh|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |stopBluetoothDevicesDiscovery|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |stopPullDownRefresh|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |switchTab|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |thirdPartyAuthForAc|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |tradePay|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |crossPay|❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |uploadApdidToken|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |uploadFile|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |vibrate|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |watchShake|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |writeBLECharacteristicValue|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |getLaunchOptionsSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |createSelectorQuery|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |canIUse|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getStorageInfo|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getStorageInfoSync|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |showSharePanel|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |hideOptionButton|✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getCurrentLanguage|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |openURL|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |openWebURL|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |openInApp|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |openOtherApp|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |openInBrowser|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |openPayCodePage|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |openApPayCodePage|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |openScanPage|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |createWithoutAuthRpc|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |rpcWithAuth|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |getAppId|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |getCurrentPages|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |getSDKVersion|✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |defineRuntimeConfig|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |rpcWithAuthAPlus|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |easyShare|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |homeAddAppToMyApps|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |homeCanAddAppToMyApps|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |postNotification|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |addNotifyListener|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |removeNotifyListener|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |getMainSelectedCity|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |chooseDistrict|❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | |popWindow|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | |setTransparentTitle|❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |

Web

| API | demo | alipay | h5 | tngdh5ng | | --- | --- | --- | --- | --- | |addFatigueAction|✅ | ❌ | ❌ | ❌ | |addPhoneContact|✅ | ✅ | ❌ | ❌ | |alert|✅ | ✅ | ✅ | ✅ | |apDisableJSAPI|✅ | ❌ | ❌ | ❌ | |appxrpc|✅ | ❌ | ❌ | ❌ | |APRegionRPC|✅ | ❌ | ❌ | ❌ | |batchQueryCdpSpaceInfo|✅ | ❌ | ❌ | ❌ | |chooseImage|✅ | ✅ | ❌ | ❌ | |choosePhoneContact|✅ | ✅ | ❌ | ❌ | |clearStorage|✅ | ✅ | ✅ | ❌ | |clearStorageSync|❌ | ❌ | ✅ | ❌ | |closeBluetoothAdapter|❌ | ❌ | ❌ | ❌ | |closeSocket|❌ | ❌ | ❌ | ❌ | |confirm|✅ | ✅ | ✅ | ✅ | |connectBLEDevice|❌ | ❌ | ❌ | ❌ | |connectSocket|❌ | ❌ | ❌ | ❌ | |createAnimation|❌ | ❌ | ❌ | ❌ | |createWebViewContext|❌ | ❌ | ❌ | ❌ | |datePicker|✅ | ✅ | ❌ | ❌ | |disconnectBLEDevice|❌ | ❌ | ❌ | ❌ | |downloadFile|✅ | ✅ | ❌ | ❌ | |exitApp|✅ | ✅ | ✅ | ✅ | |getAppIdSync|❌ | ❌ | ❌ | ❌ | |getAppToken|✅ | ✅ | ❌ | ❌ | |getAuthCode|✅ | ✅ | ❌ | ❌ | |getBatteryInfo|✅ | ✅ | ❌ | ❌ | |getBLEDeviceCharacteristics|❌ | ❌ | ❌ | ❌ | |getBLEDeviceServices|❌ | ❌ | ❌ | ❌ | |getBluetoothAdapterState|❌ | ❌ | ❌ | ❌ | |getBluetoothDevices|❌ | ❌ | ❌ | ❌ | |getClipboard|✅ | ✅ | ✅ | ❌ | |getComponentAuth|✅ | ❌ | ❌ | ❌ | |getConnectedBluetoothDevices|❌ | ❌ | ❌ | ❌ | |getFileInfo|✅ | ✅ | ❌ | ❌ | |getImageInfo|✅ | ✅ | ❌ | ❌ | |getLocation|✅ | ✅ | ✅ | ✅ | |getNetworkType|✅ | ✅ | ✅ | ✅ | |getOpenUserInfo|✅ | ❌ | ❌ | ❌ | |getPaymentCode|✅ | ❌ | ❌ | ❌ | |getPhoneNumber|✅ | ✅ | ❌ | ❌ | |getSavedFileInfo|✅ | ✅ | ❌ | ❌ | |getSavedFileList|✅ | ✅ | ❌ | ❌ | |getScreenBrightness|✅ | ✅ | ❌ | ❌ | |getServerTime|✅ | ✅ | ❌ | ❌ | |getSetting|✅ | ✅ | ❌ | ❌ | |getSiteInfo|✅ | ✅ | ✅ | ❌ | |getStorage|✅ | ✅ | ✅ | ❌ | |getStorageSync|❌ | ❌ | ✅ | ❌ | |getSystemInfo|✅ | ✅ | ✅ | ✅ | |getSystemInfoSync|❌ | ❌ | ✅ | ❌ | |hideBackHome|❌ | ❌ | ❌ | ❌ | |hideKeyboard|✅ | ✅ | ❌ | ❌ | |hideLoading|✅ | ✅ | ✅ | ✅ | |hideNavigationBarLoading|✅ | ✅ | ❌ | ❌ | |hideTabBar|❌ | ❌ | ❌ | ❌ | |hideToast|✅ | ✅ | ✅ | ✅ | |inquireQuote|✅ | ❌ | ❌ | ❌ | |isInstalledApp|✅ | ❌ | ❌ | ❌ | |makePhoneCall|✅ | ✅ | ✅ | ✅ | |multiLevelSelect|✅ | ✅ | ❌ | ❌ | |navigateBack|✅ | ✅ | ✅ | ✅ | |navigateBackMiniProgram|✅ | ✅ | ❌ | ❌ | |navigateTo|✅ | ✅ | ✅ | ✅ | |navigateToBizScene|✅ | ❌ | ✅ | ❌ | |navigateToMiniProgram|✅ | ✅ | ✅ | ❌ | |notifyBLECharacteristicValueChange|❌ | ❌ | ❌ | ❌ | |offAccelerometerChange|❌ | ❌ | ❌ | ❌ | |offBLECharacteristicValueChange|❌ | ❌ | ❌ | ❌ | |offBLEConnectionStateChanged|❌ | ❌ | ❌ | ❌ | |offBluetoothAdapterStateChange|❌ | ❌ | ❌ | ❌ | |offBluetoothDeviceFound|❌ | ❌ | ❌ | ❌ | |offCompassChange|❌ | ❌ | ❌ | ❌ | |offMemoryWarning|❌ | ❌ | ❌ | ❌ | |offSocketClose|❌ | ❌ | ❌ | ❌ | |offSocketError|❌ | ❌ | ❌ | ❌ | |offSocketMessage|❌ | ❌ | ❌ | ❌ | |offSocketOpen|❌ | ❌ | ❌ | ❌ | |offUserCaptureScreen|❌ | ❌ | ❌ | ❌ | |onAccelerometerChange|❌ | ❌ | ❌ | ❌ | |onBLECharacteristicValueChange|❌ | ❌ | ❌ | ❌ | |onBLEConnectionStateChanged|❌ | ❌ | ❌ | ❌ | |onBluetoothAdapterStateChange|❌ | ❌ | ❌ | ❌ | |onBluetoothDeviceFound|❌ | ❌ | ❌ | ❌ | |onCompassChange|❌ | ❌ | ❌ | ❌ | |onMemoryWarning|❌ | ❌ | ❌ | ❌ | |onSocketClose|❌ | ❌ | ❌ | ❌ | |onSocketError|❌ | ❌ | ❌ | ❌ | |onSocketMessage|❌ | ❌ | ❌ | ❌ | |onSocketOpen|❌ | ❌ | ❌ | ❌ | |onUserCaptureScreen|❌ | ❌ | ❌ | ❌ | |openBluetoothAdapter|❌ | ❌ | ❌ | ❌ | |openDocument|✅ | ✅ | ❌ | ❌ | |openSchemeWithBacking|✅ | ❌ | ❌ | ❌ | |openSetting|✅ | ✅ | ❌ | ❌ | |pageScrollTo|❌ | ❌ | ✅ | ❌ | |paySignCenter|❌ | ❌ | ❌ | ❌ | |previewImage|✅ | ✅ | ❌ | ❌ | |prompt|✅ | ✅ | ❌ | ✅ | |readBLECharacteristicValue|❌ | ❌ | ❌ | ❌ | |redirectTo|✅ | ✅ | ✅ | ❌ | |regionFetchAllApps|✅ | ❌ | ❌ | ❌ | |regionSearchAppsByKeywords|✅ | ❌ | ❌ | ❌ | |reLaunch|❌ | ❌ | ❌ | ❌ | |removeSavedFile|✅ | ✅ | ❌ | ❌ | |removeStorage|✅ | ✅ | ✅ | ❌ | |removeStorageSync|❌ | ❌ | ✅ | ❌ | |request|✅ | ✅ | ✅ | ❌ | |rpc|✅ | ✅ | ✅ | ❌ | |saveFile|✅ | ✅ | ❌ | ❌ | |saveImage|✅ | ✅ | ❌ | ❌ | |scan|✅ | ✅ | ❌ | ❌ | |sendSocketMessage|❌ | ❌ | ❌ | ❌ | |setBackgroundColor|❌ | ❌ | ❌ | ❌ | |setCanPullDown|❌ | ❌ | ❌ | ❌ | |setClipboard|✅ | ✅ | ✅ | ✅ | |setKeepScreenOn|✅ | ✅ | ❌ | ❌ | |setNavigationBar|✅ | ✅ | ✅ | ✅ | |setOptionMenu|❌ | ❌ | ❌ | ❌ | |setScreenBrightness|✅ | ✅ | ❌ | ❌ | |setStorage|✅ | ✅ | ✅ | ❌ | |setStorageSync|❌ | ❌ | ✅ | ❌ | |setTabBarStyle|❌ | ❌ | ❌ | ❌ | |showActionSheet|✅ | ✅ | ❌ | ❌ | |showAuthGuide|✅ | ✅ | ❌ | ❌ | |showLoading|✅ | ✅ | ✅ | ✅ | |showNavigationBarLoading|✅ | ✅ | ❌ | ❌ | |showToast|✅ | ✅ | ✅ | ✅ | |signContract|✅ | ✅ | ❌ | ❌ | |startApp|✅ | ✅ | ❌ | ❌ | |startBizService|✅ | ❌ | ❌ | ❌ | |startBluetoothDevicesDiscovery|❌ | ❌ | ❌ | ❌ | |startPullDownRefresh|❌ | ❌ | ❌ | ❌ | |stopBluetoothDevicesDiscovery|❌ | ❌ | ❌ | ❌ | |stopPullDownRefresh|❌ | ❌ | ❌ | ❌ | |switchTab|❌ | ❌ | ❌ | ❌ | |thirdPartyAuthForAc|✅ | ❌ | ❌ | ❌ | |tradePay|✅ | ✅ | ❌ | ❌ | |crossPay|❌ | ✅ | ❌ | ❌ | |uploadApdidToken|✅ | ❌ | ❌ | ❌ | |uploadFile|✅ | ✅ | ❌ | ❌ | |vibrate|✅ | ✅ | ❌ | ✅ | |watchShake|❌ | ❌ | ❌ | ❌ | |writeBLECharacteristicValue|✅ | ❌ | ❌ | ❌ | |getLaunchOptionsSync|❌ | ❌ | ✅ | ❌ | |createSelectorQuery|❌ | ❌ | ✅ | ❌ | |canIUse|❌ | ❌ | ❌ | ❌ | |getStorageInfo|❌ | ❌ | ❌ | ❌ | |getStorageInfoSync|❌ | ❌ | ❌ | ❌ | |showSharePanel|❌ | ❌ | ❌ | ❌ | |hideOptionButton|❌ | ❌ | ❌ | ❌ | |getCurrentLanguage|✅ | ✅ | ✅ | ✅ | |openURL|❌ | ✅ | ✅ | ❌ | |openWebURL|❌ | ✅ | ❌ | ❌ | |openInApp|❌ | ✅ | ❌ | ❌ | |openOtherApp|❌ | ✅ | ❌ | ❌ | |openInBrowser|❌ | ✅ | ❌ | ❌ | |openPayCodePage|❌ | ✅ | ❌ | ❌ | |openApPayCodePage|❌ | ✅ | ❌ | ❌ | |openScanPage|❌ | ✅ | ❌ | ❌ | |createWithoutAuthRpc|❌ | ✅ | ✅ | ❌ | |rpcWithAuth|❌ | ✅ | ✅ | ❌ | |getAppId|❌ | ❌ | ❌ | ❌ | |getCurrentPages|❌ | ❌ | ❌ | ❌ | |getSDKVersion|❌ | ❌ | ❌ | ❌ | |defineRuntimeConfig|❌ | ✅ | ✅ | ❌ | |rpcWithAuthAPlus|❌ | ✅ | ❌ | ❌ | |easyShare|❌ | ✅ | ❌ | ❌ | |homeAddAppToMyApps|❌ | ✅ | ❌ | ❌ | |homeCanAddAppToMyApps|❌ | ✅ | ❌ | ❌ | |postNotification|❌ | ✅ | ❌ | ❌ | |addNotifyListener|❌ | ✅ | ❌ | ❌ | |removeNotifyListener|❌ | ✅ | ❌ | ❌ | |getMainSelectedCity|❌ | ✅ | ❌ | ❌ | |chooseDistrict|❌ | ✅ | ❌ | ❌ | |popWindow|❌ | ✅ | ✅ | ❌ | |setTransparentTitle|❌ | ✅ | ❌ | ❌ |

License

MIT