Repository navigation
List Apple Wallet passes and activate them in-app - #96
Open
Brunonascdev wants to merge 1 commit into
Open
Brunonascdev wants to merge 1 commit into
Brunonascdev wants to merge 1 commit into
Conversation
Apps can read each pass's activation state on the iPhone and a paired Watch, then finish verification without leaving the app.
JakubKorytko
requested changes
Oct 15, 2026
JakubKorytko
left a comment
Member
There was a problem hiding this comment.
One thing on the isRemote lookup
| return pass.secureElementPass | ||
| } | ||
|
|
||
| if isRemote == false { |
Member
There was a problem hiding this comment.
The iPhone-then-Watch fallback only runs when isRemote is nil, but it never is: TS requires it, the new arch always passes a bool, and the old arch maps missing to false. So a caller passing false for a Watch-only card gets "Secure Element pass not found". Could we make isRemote optional end to end (isRemote?: boolean in TS, nil from RNWallet.mm when missing) so the fallback actually runs?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Adds two iOS functions so an app can show a card's verification state and finish activation without sending the user to Wallet:
listAppleWalletPasses()returns every Secure Element pass on the iPhone and on a paired Apple Watch, withactivationState(requireActivation,pending,active, and the otherCardStatusvalues) andisRemote.activateAppleWalletPass({ passTypeIdentifier, serialNumber, activationData, isRemote })activates a pass that is waiting for activation.isRemoteselects the Watch pass when the same card is on both devices.Ported from ShpetimA/react-native-wallet (
d122f802,ca6c4044), adapted to currentmain: the old architecture reads struct fields with the existing per-parameter#ifdef, and Android gets no-op stubs so the shared TurboModule spec still builds.getCardStatusBySuffixandgetCardStatusByIdentifierare unchanged and still report only the iPhone pass.Related Issues
#84
#45
Manual Tests
listAppleWalletPasses()and confirm the pass is returned withisRemote: falseand anactivationState.isRemote: true, and that a Watch-only card is no longer reported as not found.requireActivation, callactivateAppleWalletPasswith issuer activation data and the matchingisRemoteflag. Confirm it resolvestrueand a following list showsactive.activateAppleWalletPassrejects when activation data is not base64, the pass is missing, or the pass is not eligible.[], and activation throws.Linked PRs
#91 also edits the TurboModule spec, the README function table, and
WalletManager.swift/RNWallet.mm. Whichever lands second will need a small rebase. This PR does not depend on #91.