passbook

How to modify the content shown in the lock screen when Passbook is nearby

非 Y 不嫁゛ 提交于 2019-12-22 13:50:08
问题 I want to modify what is shown in the lock screen when a passbook location is nearby. At present it give me a logo, "nearby" and app name. How can I show other content? 回答1: The degree to which you can customise lock screen messages for location alerts is somewhat limited. The format will always be icon, organizationName (taken from pass.json and displayed in bold) on the first line and a customisable message on the second line. The space for the message is small meaning that messages over 30

Passkit push notifications not working with Urban Airship

狂风中的少年 提交于 2019-12-22 09:39:28
问题 I have a pass installed. When installed on a device it registers to my server, the device id is also registered with Urban Airship services. So far so good. When I try to send a push message from the dashboard at urban airship, or curling, or let the server send the push, it is never received by the device. Is there anything special I have to think about when pushing passkit updates? 回答1: After a lot of tinkering I got this to work. The solution is not intuitive: Make sure the 'application'

How to access passes from passbook in my app?

拟墨画扇 提交于 2019-12-22 05:11:51
问题 I'm creating app in which I'm adding and showing passes from passbook app of iOS6 to my app. But when I run application on simulator it's showing added passes but when I run same on Device it's showing that my passbook is empty. I have followed iOS6 tutorial integrating passbook your applications link for creating, adding and showing passes. for accessing passes I have used following code - NSArray * passArray = [_passLib passes]; NSLog(@"number of passes in library are: %d",[passArray count]

How to built and print a scannable Pass for Passbook in iOS7

雨燕双飞 提交于 2019-12-21 13:09:24
问题 i can't figure out how to build a OR Code for a Pass that is scannable with the new QR code scanner in iOS7' Passbook App. When I try to scan a QR Code with a link to a working Pass, the App says it is 'No Pass available for this Card'. Card, hum?! Any ideas? 回答1: For a pass to install, the following criteria have to be met: The link must be https The URL must return a valid .pkpass bundle The Content-Type header must be application/vnd.apple.pkpass Unfortunately, these requirements are not

Invalid token when using Apple Push Notifications (APN) for Passbook

不问归期 提交于 2019-12-21 04:14:12
问题 I am trying to create a server-side implementation for passbook APN, but the server does not like the push token that the device is giving me. If I send the token to Apple's sandbox server, it sends me an "invalid token" response. If I send the token to Apple's production server, it returns the token in the feedback service as one that I should remove from my list. At least I know that the APN certificates and connection to the server work fine. My iPhone 4s has been enabled for development.

iOS 6 Passbook: Open Passbook app from my app

蓝咒 提交于 2019-12-18 12:42:20
问题 I am building an application related to the Passbook app. Basically I am generating a boarding pass for a flight ticket and adding it to Passbook. That part is working fine. But, I want to open the Passbook app from my app to see the pass details. I have seen that Apple has removed the URL scheme options. How can I achieve this? 回答1: I had the same problem, it worked well with the emulator but crashed on the device. 1 - Double check the Entitlements 2 - I used this when the _pass is already

Create Certificate and Pass Type ID at runtime

丶灬走出姿态 提交于 2019-12-13 16:31:24
问题 My Passbook-related app was recently rejected based on guideline 23.3: 23.3: Passes must be signed by the entity that will be distributing the pass under its own name, trademark, or brand or the app will be rejected and Passbook credentials may be revoked I had a few questions and got on the phone with someone at Apple. They told me that to remedy my problem I could create a sign-up form in my application. This sign-up form could then be used to create a certificate and pass type ID for the

Safari cannot download passbook file .pkpass

牧云@^-^@ 提交于 2019-12-13 15:53:02
问题 I've got a link on a web page that should enable users to download a passbook file from a link, however when clicking on the link in Safari on an iPhone, I get the following error message: Safari cannot download this file. I have read similar Q&As on here, and the MIME type is set to application/vnd.apple.pkpass . The file can be downloaded on a Windows phone. Any suggestions on why this is the case and how to resolve this so users can access the passbook file? The pkpass contains the

Update passes of passbook

假装没事ソ 提交于 2019-12-13 05:22:55
问题 How to update passes of passbook by push notification. I get the pushtoken by webservice url. but i don't know how to update passes through push notification. i am using simple php file for push notification. 回答1: check this, I use this code to send push notification to iOS, but I still finding for android PHP Apple Enhanced Push Notification read error response 来源: https://stackoverflow.com/questions/34310956/update-passes-of-passbook

How to set webServiceURL and register successfully

倾然丶 夕夏残阳落幕 提交于 2019-12-13 04:29:11
问题 I fill some parts of webserviceURL , but for deviceID , what do I put for it? This is the code I use to register device and pass for webservice. What do I need to change in order to register after adding pass ? <?php echo "<a href= 'genericPass.php'> Click here to add Generic Pass</a><br/>"; echo "<a href= 'couponPass.php'> Click here to add Coupon Pass</a>"; $url = 'https://192.168.1.105:8888/passesWebserver/v1/devices/{deviceID}/registrations/‌​pass.cam-mob.passbookpasstest/E5982H-I2'; $ch