devartis / passbook

Python library to create Apple Passbook (.pkpass) files
http://www.devartis.com/
MIT License
272 stars 108 forks source link

Grouping Identifier #46

Closed benydc closed 4 years ago

benydc commented 5 years ago

Are you able to add grouping identifier to the Pass class?

mbaechtold commented 5 years ago

I see, this is described in https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/TopLevel.html but missing in this library.

We happily accept pull requests if you want to contribute this feature.

sbbastos commented 5 years ago

Hi,

How I create a Grouping Identifier to grouping the passes?

mbaechtold commented 5 years ago

@sbbastos, you could try to set a property groupingIdentifier on an instance of the Pass class:

from passbook.models import Pass

my_pass = Pass(...). # see README.md
my_pass.groupingIdentifier = "Foo"
sbbastos commented 5 years ago

yes @mbaechtold , but can the value be anything like your exemple or must be a predefined value? For exemple, Like we set the Team identifier. If Yes, what moment I create it?

sbbastos commented 4 years ago

A friend sent me some expired tickets and I got the answer.

The airline concatenates the locator and name and puts it as a group identifier.

I thought groupingIdentifier was issued by Apple.

Thanks

mbaechtold commented 4 years ago

Seems like this issue has been solved, so I'm closing it.