Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The passbook is not recognized by the iphone #10

Closed
ogonbat opened this issue Oct 2, 2012 · 2 comments
Closed

The passbook is not recognized by the iphone #10

ogonbat opened this issue Oct 2, 2012 · 2 comments

Comments

@ogonbat
Copy link

ogonbat commented Oct 2, 2012

i have make a smple python app that create the passbook files.

this is the code

cardinfo = StoreCard()
        cardinfo.addPrimaryField("name","Name:","name")

        passTypeIdentifier = 'pass.<mytypeidentifier>'
        teamIdentifier = '<teamidentifier>'
        organizationName = 'Test by Cingusoft'

        passfile = Pass(cardinfo,passTypeIdentifier=passTypeIdentifier,organizationName=organizationName,teamIdentifier=teamIdentifier)
        passfile.serialNumber = "34556"
        passfile.description = "this is a passbook description"
        passfile.barcode = Barcode(message = 'Barcode message')
        passfile.addFile('icon.png',open(os.path.join(os.path.realpath(os.path.dirname(__file__)),'icn.png')))
        passfile.addFile('logo.png',open(os.path.join(os.path.realpath(os.path.dirname(__file__)),'logo.png')))
        passfile.create(os.path.join(os.path.realpath(os.path.dirname(__file__)),"../certificates/certificate.pem"),
            os.path.join(os.path.realpath(os.path.dirname(__file__)),"../certificates/key.pem"),
            os.path.join(os.path.realpath(os.path.dirname(__file__)),"../certificates/intermediate.pem"),
            '123456,
            'test.pkpass') # Create and output the Passbook file (.pkpass)

the library create the passbook file test.pkpass
i send it eith emails and the Mail application recognize the passbook file.
when i open the same email with iphone he don't recognize a passbook file.
if i "upload" the passbook file from the Mail app, nothing happen.

i have used the correct certificates.
Have some problems?
have you tested with your iphone?

thank's in advance

@fara
Copy link
Member

fara commented Oct 2, 2012

Hi Andrea, have you tried latest version? Last commit fixes an issue with json serialization.
Also try checking the Console log with Xcode when you open the mail with the pass. It should provide you a descriptive error of the issue. Please post it here if the problem persists.

@fara
Copy link
Member

fara commented Oct 11, 2012

Cannot reproduce and there´s no feedback from the reporter.

@fara fara closed this as completed Oct 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants