passkit

How to create .pkpass file for apple wallet on serverside and get it on iOS side

丶灬走出姿态 提交于 2021-02-10 18:33:15
问题 Here I have created .pkpass file following this tutorial Manually the above approach is static What I want is to generate somehow the pkpass file on the server side and then open it from my iPhone/iPad device. 回答1: If you are asking only about the apple wallet pass creating process, you need to create some server-side API (like .net core or something similar) that will return bytes array (.pkpass file) with ContentType "application/vnd.apple.pkpass". Here it is an example. Interface example:

Apple Wallet: Is Push Token unique for each device?

感情迁移 提交于 2021-02-08 03:46:31
问题 I have made an implementation which i can create passes for apple wallet. Once the device registers with server will push token unique for this device or will change eventually in future? If yes, what are the reasons for that? 回答1: Yes - to help with privacy, the push tokens are regularly rotated - this may occurs at random, or with changes in hardware (user transferring to a new phone), or often with iOS upgrades. Your web-service API implementation will see this as a new registration

Implementing Apple Pay with SwiftUI

折月煮酒 提交于 2020-07-21 03:02:07
问题 This is my first time working with PassKit and with SwiftUI on a big project. I'm trying to implement Apple Pay SwiftUI and since there isn't a native way to do so yet, I tried wrapped the PKPaymentAuthorizationViewController in UIViewControllerRepresentable, but I'm not sure if I'm doing it properly. The view displays properly and seems to work when clicking on it to pay. I control showing the window by binding the view to an isPresentingApplePay bool (see below). The issues happen when the

Can't add pkpass to ipad, safari can't download

孤街醉人 提交于 2020-05-17 07:46:29
问题 I've created a pkpass using jpasskit, but can't add that to ipad. It's showing that safari can't download the file. These are working perfectly fine in iPhone devices 回答1: iPad doesn't support .pkpass files because Wallet is not available on the iPad. You should adjust your user experience to display a notification to revisit the link on an iPhone or on Safari on a Mac. 来源: https://stackoverflow.com/questions/61769340/cant-add-pkpass-to-ipad-safari-cant-download

How to open a pkpass file to wallet from Xamarin Mobile application

寵の児 提交于 2020-01-25 08:55:08
问题 I have created pkpass file from server side and its working fine. I try to consume the pkpass via service and try to add the pass via PKAddPassesViewController. But it's not working. I have followed this resourse to add pass file to add wallet try { _oHttpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accesstoken); //this response is pkpass file HttpResponseMessage response = await _oHttpClient.GetAsync(new Uri(Constants.Urls.DigitalMembershipCardApple +

ApplePay `paymentAuthorizationViewController:didAuthorizePayment:handler:` not called in Xcode Simulator 10.3

谁说胖子不能爱 提交于 2020-01-16 09:10:35
问题 ApplePay's PKPaymentAuthorizationViewControllerDelegate method paymentAuthorizationViewController:didAuthorizePayment:handler: is not being called when run on an Xcode 10.3 simulator. This method is called as expected when built to a device with Xcode 10.3. This method is called as expected in the Xcode 10.2.1 simulator. The deprecated method paymentAuthorizationViewController:didAuthorizePayment:completion: exhibits the same negative behavior. Based on the fact that it works on device and in