coorasse / passkit

Wallet Pass generation for Ruby On Rails
MIT License
90 stars 27 forks source link

Send appropriate headers on pass generation #15

Closed jonathandean closed 1 year ago

jonathandean commented 1 year ago

Problem

In Chrome on iOS, passes download using the file download queue feature instead of prompting to install. Clicking on the download doesn't open the install prompt either. I have needed to text the file to myself using the Messages app to be able to install it.

File

(Note: without this PR Safari works fine.)

Solution

Send the type: 'application/vnd.apple.pkpass' in the controller response just like was done in https://github.com/coorasse/passkit/pull/14 for previews

Notes

Verified that this works with both issuing and updating passes and does not impact the already working Safari behavior.