-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Not Working PassKit After Generated #207
Comments
Hi @AzPsu, thank's for using passkit-generator! I'm not sure what is going on here. I never used Flutter to do this thing, so I'm not sure I can help you. What I can suggest you, if you have a Mac, is to try to download and open the pass from your mac and check if you can open it. By doing that thing, we can start to exclude things like "its the application" or "it's the pass". Then, I would check the Let me know. |
Thanks for resposnse @alexandercerutti , I checked on my Mac is doesn't open PassKit, please If can review my code JS only. I used firebase, and I run emulator I can't see any logs and status request is 200OK, this is res body: I don't have any error, but still not responding Mac also iPhone for open PassKit. Can give me any help about that's, thanks. |
Okay so, even if I highly suggest you to not print that thing here (just for a matter of reading), A zip file is being served correctly. Could be a validation issue of the pass. You need to open Console.app and check for any logs. Start with logs coming from your Mac. Let me know. |
BTW, after formatting your message, I wanted to let you know that you seem to not be correctly overriding the fields value and some other things. You can see there are still the placeholders in there. |
This is logs for request on function cloud : `2024-06-27 14:57:23.933 AST 2024-06-27 14:57:26.886 AST And if you can help me how o extract logs from Mac when open PassKit |
How can help for fix it this ? |
As I told you, there's a guide in the wiki about that. I cannot link it to you right now, sorry |
Don't know. Either you set the fields through passkit-generator or do a replace for those fields on pass.json. I don't know if those placeholders are hardcoded or what |
This is pass.json :
|
I kindly ask you to use triple ` here in GitHub to group your code together, just like I edited your's above. Okay so you are adding things manually. Which could mean that the content you are sending to the function already contains the placeholder. Don't know how else I can help you with this. |
Ok thank u, could please clarify best practice based on JS |
I cannot think of a best practice right now. |
Ok take your time |
No I meant that I don't know what I can suggest you because I don't know what you are referring to. However, let me know what are you discovery in Console.app |
Ok you mean this logs : |
You understand what is Console.app, right? |
Ok change logs, please take look and take your time for understanding, my issue! |
Almost the right logs, but these do not report anything about the PKPass. Did you try following the guide in the wiki? |
Please take look for this :
|
Oh I think I can see the issue: You wrote: newPass.addBuffer("./model/mycard.pass/logo.png", buffer); But you should have used only I think that a path in you pkpass is being created and Apple Wallet doesn't recognize it. Change it and let me know. |
Yes it's work thanks. |
Yay! If you could leave a 🌟 to the project, that would be awesome |
My Code in Serverless JS
Result in App Flutter, Logs
MyAPP: PassKit: PasskitPass(1, null, null, PasskitStructure([PasskitField(Dpt, Dpt., Test, null), PasskitField(Role, Role, Testطبيقات, null)], [PasskitField(id, ID, Pass1, null)], [PasskitField(ex, Ex, 8421, null)], [PasskitField(email, EMAIL, [email protected], null)], [PasskitField(name, Name, Test, Test, null)], null), null, null, pass.com.example.test, TST, 9J3UO23HHN, Color(0xfffd7b23), Color(0xff000000), Color(0xff000000), PPP, http://localhost:5000/test-50a6b/us-central1/pass, 0000001, CQYDVQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK6JWEdT, null, null, null, null, null, [email protected], null, null, null, null)
flutter: INFO🔷 | MyAPP: Add pass result: false
The text was updated successfully, but these errors were encountered: