I was using canAddSecureElementPass(primaryAccountIdentifier:) to determine whether a connected device existed and if it could add a pass and it was working great until recently. I displayed the Add card to Apple Wallet button if there were no passes or if the canAddSecureElementPass(primaryAccountIdentifier:) function returned true.
Now the function has started to return false if a pass has been added to the phone even if there is a watch paired and there is no pass in the watch.
Any info on why this function isn't working is really appreciated.
I'm implementing a solution which uses Watch Connectivity to check if a Watch is paired and then checking the remote passes as mentioned here above since the simple useful function stopped working :(
Documentation for the function https://developer.apple.com/documentation/passkit/pkpasslibrary/3543354-canaddsecureelementpass?changes=lat__5_8_8_8.
Post
Replies
Boosts
Views
Activity
Hi have you found out what's going on.
I'm having the same issue.