Apple Pay sheet doesn't appear in iOS10 if shippingAddress is set
| Originator: | bg | ||
| Number: | rdar://28410469 | Date Originated: | 21-Sep-2016 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 10.0 |
| Classification: | Reproducible: | Always |
Summary: If a PKPaymentRequest's shippingAddress is set, the Apple Pay sheet won't appear when presenting a PKPaymentAuthorizationViewController. Instead, the following appears in the logs: > <private> XPC Error: <private> > Failed to present in-app payment interface: <private> > Connection to remote alert view service failed This is reproducible on both the iOS 10.0 simulator and a device running iOS 10.0.1, but doesn't happen on iOS 9. The same thing also happens when using the new PKPaymentAuthorizationController. Steps to Reproduce: 1. Run the attached example app on an iOS 10 simulator 2. Tap Buy -> No payment sheet appears 3. Comment out line 54 in ViewController.m, which sets paymentRequest.shippingAddress 4. Run the app again 5. Tap Buy -> Payment sheet appears Expected Results: PKPaymentAuthorizationViewController should always appear when the PKPaymentRequest has a shippingAddress. Actual Results: PKPaymentAuthorizationViewController doesn't appear on iOS10 when the PKPaymentRequest has a shippingAddress. Version: iOS 10.0.1 Notes: This affects any app that hasn't migrated to using shippingContact. Configuration: iOS 10.0 simulator and iPhone 6s running iOS 10.0.1 Attachments: 'apple-pay-shipping.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!