Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid

Method signature
navigateBackMiniProgram(params: )

Return to the previous mini program. Can be called successfully only when the current mini program was opened by another mini program

PropertyTypeRequiredDescription
extraDataRecord<string, any>NoData to return to the previous mini program; the previous mini program can obtain it in App.onShow
complete() => voidNoCompletion callback (executed on both success and failure)
success() => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

None