Skip to content

Commit

Permalink
feat(identity): call savedAlive
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlabo committed Feb 1, 2025
1 parent 76b3d65 commit e96c57c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class StripeIdentity(
IdentityVerificationSheetEvent.Completed.webEventName
)
)
bridge.releaseCall(callbackId)
}

fun onVerificationCancelled(bridge: Bridge, callbackId: String?) {
Expand All @@ -88,6 +89,7 @@ class StripeIdentity(
IdentityVerificationSheetEvent.Canceled.webEventName
)
)
bridge.releaseCall(callbackId)
}

fun onVerificationFailed(bridge: Bridge, callbackId: String?) {
Expand All @@ -99,5 +101,6 @@ class StripeIdentity(
IdentityVerificationSheetEvent.Failed.webEventName
)
)
bridge.releaseCall(callbackId)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class StripeIdentityPlugin : Plugin() {
@PluginMethod
fun present(call: PluginCall) {
identityVerificationCallbackId = call.callbackId

call.setKeepAlive(true);
bridge.saveCall(call)

implementation.present(call)
Expand Down

0 comments on commit e96c57c

Please sign in to comment.