javascript - Create downloadable passes (*.pkpass) for Apple passbook with .Net - Stack Overflow

I needed to develop a website in .Net which can create event tickets that downloadable as passbook file

I needed to develop a website in .Net which can create event tickets that downloadable as passbook file (*.pkpass). I tried to use. Dotnet-passbook library available in Nuget. But any created passes are not open in iPhone. Have anyone faced this issue? Any other suggestions to do this task?

I needed to develop a website in .Net which can create event tickets that downloadable as passbook file (*.pkpass). I tried to use. Dotnet-passbook library available in Nuget. But any created passes are not open in iPhone. Have anyone faced this issue? Any other suggestions to do this task?

Share Improve this question edited Jun 15, 2017 at 4:59 Tharindu asked Jun 15, 2017 at 3:48 TharinduTharindu 811 silver badge13 bronze badges 8
  • If you could pile the pass, it is more likely a certificate or other configuration or content problem (E.g. Missing icon file) and less likely to be the library. – PassKit Commented Jun 15, 2017 at 6:25
  • thank you for ment. yes it get pile and pkpass file is created. but not working inside iphone. is it possible to not open if image etc missing ? – Tharindu Commented Jun 15, 2017 at 6:31
  • “Not working” is insufficient to diagnose. What do the iPhone logs show when you try to add the pass? They should give you the reason it is failing. – PassKit Commented Jun 15, 2017 at 6:33
  • 1 :Invalid data error reading pass pass..cas.passbook/1212t. The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified. :Failed to add pass:'Error Domain=PKPassKitErrorDomain Code=1 "The pass cannot be read because it isn’t valid."UserInfo={NSLocalizedDescription=The pass cannot be read because it isn’t valid., NSUnderlyingError {Error Domain=PKPassKitErrorDomain Code=1 "The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified – Tharindu Commented Jun 15, 2017 at 6:58
  • Check that you are using the latest Apple WWDR certificate. The one bundled with the library may haveexpired in February 2016. – PassKit Commented Jun 15, 2017 at 7:00
 |  Show 3 more ments

3 Answers 3

Reset to default 2

I also create .pkpass using C#, you may reference to my past question such this generate pkpass question.

The major problem I think, should be the pass.json file format is not correct. A easy method to test the .pkpass file must be using xcode and create a ios simulator, drop your .pkpass file in to simulator. The xcode log will display the reason why your file is not working, hope helpful.

This is solved. it worked after using "request.CertThumbprint" instead of location referring to the certificate. thanks. so error was validating the certification in passes.

You need the xcode framework or apple build package, here the info.

https://blogs.msdn.microsoft./vcblog/2017/04/18/android-and-ios-development-with-c-in-visual-studio/

here you can download, the visual studio full. https://www.visualstudio./en/downloads/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745091126a4610700.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信