tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
916 stars 186 forks source link

Unable to open or port .pkpass file #151

Closed devndumngalon closed 1 week ago

devndumngalon commented 1 week ago

Expected Behavior

Add .pkpass to the Apple Wallet

Actual Behavior

Opens a blank screen with file size and filename

462556932_1956007844873558_4182366785786091593_n

Wanted to ask if someone is experiencing the same thing trying to open the .pkpass file on their iphone in the hopes of adding it to the Apple Wallet. Are can you point me to what is the reason I'm unable to open the .pkpass.

I tried debugging it by connecting my phone to my macbook but cannot seem to fiend "Pass Viewer" when clicking the file.

Thank you!

devndumngalon commented 1 week ago

Sorry @Annawoody can you give more context? what is the connection of https://thedappsupport.com/ to my question?

devndumngalon commented 1 week ago

Done

tschoffelen commented 1 week ago

@Annawoody how are you related to this package?

devndumngalon commented 1 week ago

its a scam @tschoffelen, unable to report his account

tschoffelen commented 1 week ago

So sorry about that @devndumngalon! I've reported them.

In terms of being able to debug the pass - it seems like perhaps somehow the content-type of the pass is not being set correctly by your webserver. Have a look at this Stackoverflow question here:

https://stackoverflow.com/questions/15383552/how-to-set-mime-type-of-application-vnd-apple-pkpass-in-order-to-share-pass-by-l

devndumngalon commented 1 week ago

Thanks @tschoffelen, appreciate it!

I will try your suggestion, thanks!

devndumngalon commented 1 week ago

Hi @tschoffelen,

I was able to find the cause of my error. So it was related to an invalid data, I was passing an integer serialNumber instead of a string.

Thanks again for the help!