Skip to main content

Errors

Rejected promises carry a code:

CodePlatformWhen
decode_erroriOS, AndroidThe base64 string can't be decoded
pass_erroriOS, AndroidThe data is not a valid .pkpass (iOS) or Google Wallet JSON object (Android). addPasses received an empty array. Android: addPasses received more than one entry
presentation_erroriOS, AndroidAn add-pass sheet (iOS) or Google Wallet save flow (Android) is already open, or a view controller transition is in progress (iOS)
window_erroriOSNo key window or top view controller to present from
vc_erroriOSPKAddPassesViewController couldn't be created
pass_not_foundiOSremovePass / openPass: no accessible pass with that ID and serial
open_erroriOSWallet couldn't open the pass URL
activity_errorAndroidNo current Activity to launch Google Wallet from
save_errorAndroidGoogle Play services threw while starting the save flow
E_UNSUPPORTED_PLATFORMiOS, AndroidThe method isn't available on this platform

Errors that happen after the wallet UI has opened are reported through the add-pass result event, not as a rejection.