-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The pass "pass.pkpass" could not be opened #51
Comments
You can not send pkpass as is in send_data Sorry it could be a little bit more documented. Will update doc in order to get that a bit more clear. Let me know if it solved your issue. |
WOW! thanks for the prompt response. That returns |
This time it is something different. You are only giving the filename and not the file path. Dir.foreach(pass_path) do |file|
next if file == '.' or file == '..' or file == '.DS_Store'
files << File.join(pass_path, file)
end This should solve this other issue. |
ah! okay. I'll. Worked like a charm! BTW, I'd love to help with documentation and contributing. |
I'm sending pkpass responses like this: pkpass = Passbook::PKPass.new # ... initialize & add files
send_data(pkpass.stream.string, filename: "pass.pkpass", content_type: "application/vnd.apple.pkpass") |
I keep getting this error: The pass "pass.pkpass" could not be opened. Below's my code. I've re-done the cert process like 3 times. Not sure where it's failing because the package seems intact.
The text was updated successfully, but these errors were encountered: