passbook

可扩展的开源移动端框架:Helios

余生长醉 提交于 2019-12-03 08:27:03
可扩展的开源移动端框架:Helios 发布于:2014-05-08 09:37 阅读数:543 Helios是一个开源框架,为iOS应用程序提供基本的后端服务,可提供从数据同步、用户账户到消息推送、IAP以及Passbook集成等服务。它使得开发者在短短几分钟内就可以获得并且运行一个客户端 “ ” 阅读器 Helios Helios是一个开源框架,为iOS应用程序提供基本的后端服务,可提供从数据同步、用户账户到消息推送、IAP以及Passbook集成等服务。它使得开发者在短短几分钟内就可以获得并且运行一个客户端-服务器应用程序以及必要的功能性无缝整合。 Helios是专门为“移动为先”的开发而设计的,在设备上创建了伟大的功能,并实现了必需的服务器端组件。把你所有的精力投入到制作一个伟大的用户体验中,而不是因后端陷入困境。 Helios中关于这个理论有一个很棒的例子,那就是Core Data数据同步。它允许你使用现有的Core Data模型的定义来自动的生成一个REST网络服务,可用于在服务器和客户端传送数据。没有iCloud也没有问题。 Helios还附带一个Web UI。浏览并查找你的所有数据库记录、推送注册通知、应用程序内购买以及passbook passes。你甚至还可以从浏览器发送有针对性的推送通知。 基本要求 1. Ruby 1.9 2. PostgreSQL 9.1 (

Cannot generate Apple Passbook signature

空扰寡人 提交于 2019-12-03 08:20:18
I am writing a shell script to automatically generate an Apple Passbook signature file from manifest.json using p12 certificate. Here is what I do: openssl pkcs12 -passin pass:"mypass" -in "mycert.p12" -clcerts -nokeys -out certificate.pem openssl pkcs12 -passin pass:"mypass" -in "mycert.p12" -nocerts -out key.pem openssl smime -passin pass:"mypass" -binary -sign -signer certificate.pem -inkey key.pem -in manifest.json -out signature -outform DER The first two functions work fine. At least both certificate.pem and key.pem are created. The signature file is also created, but for some reason it

How get feedback from APNs when sending push notification

≡放荡痞女 提交于 2019-12-03 03:44:59
Now I can send push Token from device that has installed a pass already, but I don't know how the feedback work in this point. From apple docs, Apple Push Notification service (APNs) provides feedback to server to tell if pushToken is valid or not. How to get this feedback ? I try this code, but a lot errors. This is the code: <?php $cert = '/Applications/MAMP/htdocs/passesWebserver/certificates.pem'; $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', $cert); stream_context_set_option($ctx, 'ssl', 'verify_peer', false); $fp = stream_socket_client('ssl:/

Signing content for apple passbook in c#

血红的双手。 提交于 2019-12-02 17:09:42
问题 Here is my code static void Main(string[] args) { try { ContentInfo contentInfo = new ContentInfo(File.ReadAllBytes(@"D:\prj\temp\manifest.json")); SignedCms signedCms = new SignedCms(SubjectIdentifierType.IssuerAndSerialNumber, contentInfo); var signer = new CmsSigner(new X509Certificate2(@"D:\prj\temp\Shooger_Passbook_withoutKey.p12", "xxxxxxxxx")); signer.Certificates.Add(new X509Certificate2(@"D:\prj\temp\AppleIncRootCertificate.cer")); signer.Certificates.Add(new X509Certificate2(@"D:

Is it possible to change the title of PKAddPassesViewController ?

眉间皱痕 提交于 2019-12-02 11:56:27
问题 Every pass, when being added results in PKAddPassesViewController having its title automatically set according to pass type and respecting localization (Generic get "Card", event ticket gets "Event Ticket", store card gets "Store Card" and so on...); but is it possible to change the title? I've tried setting title property of PKAddPassesViewController instance, but nothing happened, so maybe there is a attribute in pass.json that can control the title (I didn't find one in PassKit specs)? 回答1

Signing content for apple passbook in c#

寵の児 提交于 2019-12-02 09:04:24
Here is my code static void Main(string[] args) { try { ContentInfo contentInfo = new ContentInfo(File.ReadAllBytes(@"D:\prj\temp\manifest.json")); SignedCms signedCms = new SignedCms(SubjectIdentifierType.IssuerAndSerialNumber, contentInfo); var signer = new CmsSigner(new X509Certificate2(@"D:\prj\temp\Shooger_Passbook_withoutKey.p12", "xxxxxxxxx")); signer.Certificates.Add(new X509Certificate2(@"D:\prj\temp\AppleIncRootCertificate.cer")); signer.Certificates.Add(new X509Certificate2(@"D:\prj\temp\AppleWWDRCA.cer")); signer.IncludeOption = X509IncludeOption.WholeChain; signer.SignedAttributes

Is it possible to change the title of PKAddPassesViewController ?

橙三吉。 提交于 2019-12-02 04:43:43
Every pass, when being added results in PKAddPassesViewController having its title automatically set according to pass type and respecting localization (Generic get "Card", event ticket gets "Event Ticket", store card gets "Store Card" and so on...); but is it possible to change the title? I've tried setting title property of PKAddPassesViewController instance, but nothing happened, so maybe there is a attribute in pass.json that can control the title (I didn't find one in PassKit specs)? No, there is no way in the current framework that this title can be customised, either by the Pass Kit

How to force links to open in iOS Safari?

萝らか妹 提交于 2019-11-30 22:05:59
my webpage has links to download Passbook .pkpass files. This works fine in Safari for iOS since Apple's browser supports the mime type: application.com/vnd.apple.pkpass Facebook's iOS browser (as well as others) does not (yet) support this mime type. Therefore, if a user follows a link to my site from within Facebook, they can't download my Passbook files. However, if they click on 'Open in Safari' then they can download the file. How can I code my webpage such that clicking on a link will force open Safari on iOS? Andrew These headers should be helpful to what you're doing. Content-Type

Pkpass on Android

隐身守侯 提交于 2019-11-30 12:08:32
问题 There is an android app, Passwallet, that is able to interpret pkpass files intented for the apple app Passbook (https://play.google.com/store/apps/details?id=com.attidomobile.passwallet) I was wondering how to read pkpass files. Pkpass files seem to be zip files with all the information inside in json files. Is there a default structure for the pkpass files? If so what is it? And what would be a good way to import that into a android app? For the people who wonder how read the content of the

Push notifications to Passbook via Urban Airship not appearing on device

时光毁灭记忆、已成空白 提交于 2019-11-30 09:08:59
问题 I've found this post to be really helpful in getting set up, but I have yet to see the push notification come through on the iPhone on which the pass is installed. Passkit-push-notification-not-working-with-urban-airship I set up my app on urban airship's site pushing to Apple's development servers. I installed a pass on my phone and run the following commands which I found in the above post: airship = urbanairship.Airship(_UrbanAirshipPassbookKey, _UrbanAirshipPassbookMasterSecret) airship