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

use of PassBuilderNfcKeysExtensions #23

Open
MagTek-PaulDeignan opened this issue Nov 30, 2023 · 1 comment
Open

use of PassBuilderNfcKeysExtensions #23

MagTek-PaulDeignan opened this issue Nov 30, 2023 · 1 comment

Comments

@MagTek-PaulDeignan
Copy link

Can you show the expected usage of the PassBuilderNfcKeysExtensions?

I am trying to add nfc message content to the pkpass

@justdmitry
Copy link
Owner

I never tried that because I have no required access/certification in Apple Dev. Program.

I guess desired sequence should be like

var pass = passKitHelper.CreateNewPass()
    .Standard
        .SerialNumber("PassKitHelper")
        .OrganizationName("PassKit")
    ...
    .Nfc("message", "key")
    .Build()

But it seems I missed extension method, so for now you need additional variable:

var builder = passKitHelper.CreateNewPass()
    .Standard
        .SerialNumber("PassKitHelper")
        .OrganizationName("PassKit")
    ...;

var nfcBuilder = new PassBuilder.PassBuilderNfcKeys(builder);
nfcBuilder.Nfc("message", "key");

var pass = builder.Build();

Can you please try this and respond does it works as desired or not? I have no any way to validate this NFC workload myself.

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