Skip to main content

bn.callAnotherApp

callAnotherApp<T>(options): Promise<T>

description Used for cross mini-app communication. Need permission to use. The target app must be currently running and register the action.

remark supported jssdk > 4.26.0

example

const res = await bn.callAnotherApp({ action: 'aciton' })

Type parameters

NameType
Tany

Parameters

NameType
optionsCallAnotherAppOptions

Returns

Promise<T>


Interface: CallAnotherAppOptions

NameTypeDescription
actionstring
payload?Record<string, any>
id?string