Detect the provider
If you use the @metamask/detect-provider
module, it reliably detects both the mobile and extension provider. If you don't use @metamask/detect-provider
, you must detect the mobile provider manually. You can manually detect the mobile and extension provider with the following code:
Last updated