tomasmcguinness / dotnet-passbook

A .Net Library for generating Apple Passbook (Wallet) files for iOS. Please get involved by creating pull requests and opening issues!
MIT License
319 stars 117 forks source link

Successfully Can Create StoreCard But Can't Add #2

Closed devandanger closed 12 years ago

devandanger commented 12 years ago

Was able to regenerate the card a couple times now, but whenever I add it. It doesn't make its ways into the passbook. Have you observed this at alll?

tomasmcguinness commented 12 years ago

Hello Evan

What version of iOS are you using? Beta 4?

It's possible there have been some breaking changes between beta 3 and 4. I'll be updating the code over the weekend and I'll take a look.

Thanks.

www.about.me/tomasmcguinness

On 10 Aug 2012, at 06:56, "Evan Anger" notifications@github.com wrote:

Was able to regenerate the card a couple times now, but whenever I add it. It doesn't make its ways into the passbook. Have you observed this at alll?

— Reply to this email directly or view it on GitHub.

devandanger commented 12 years ago

I'm using beta4, is it still working for you on beta3. I don't have access to one of those phones. I'm looking into it as well, let me know if you find anything.

Evan

tomasmcguinness commented 12 years ago

It should still be working for beta 3. Do share your findings. I'll hopefully have a look tomorrow.

Tomas McGuinness

Check out my latest application - http://www.imaybelate.com - essential for all London CommutersCheck out my blog at http://www.tomasmcguinness.com Follow me on twitter http://www.twitter.com/tomasmcguinness

Date: Fri, 10 Aug 2012 08:21:06 -0700 From: notifications@github.com To: dotnet-passbook@noreply.github.com CC: tomas@tomasmcguinness.com Subject: Re: [dotnet-passbook] Successfully Can Create StoreCard But Can't Add (#2)

I'm using beta4, is it still working for you on beta3. I don't have access to one of those phones.

I'm looking into it as well, let me know if you find anything.

Evan

          —

          Reply to this email directly or view it on GitHub.
tomasmcguinness commented 12 years ago

I confirmed that after two small updates, the code now works with iOS 6 Beta 4. It seems that Apple are now putting more validation into iOS for mandatory properties in the pass.

These are the errors from XCode:

Value for key 'foregroundText' must be of class NSString, but is actually of class NSNull. Value for key 'logoText' must be of class NSString, but is actually of class NSNull.

The StoreCard was unaffected, but the EventCard wasn't working at all.

If you hit any other problems, let me know.

devandanger commented 12 years ago

It looks like a couple of changes I made in addition were causing my problems. I had something like logoText=null in the pass.json oppose logoText="". I got a generic card working.

tomasmcguinness commented 12 years ago

Cool!

www.about.me/tomasmcguinness

On 13 Aug 2012, at 14:34, "Evan Anger" notifications@github.com wrote:

It looks like a couple of changes I made in addition were causing my problems. I had something like logoText=null in the pass.json oppose logoText="". I got a generic card working.

— Reply to this email directly or view it on GitHub.

mrafiq1465 commented 11 years ago

Hi Tom, My pass creation works fine but when I click add button nothing happens. Any idea?

Thanks Raf

tomasmcguinness commented 11 years ago

Hi Raf,

There can be any number of things wrong. The best way is to connect the iPhone to XCode and use the Console to view what the phone is saying.

Another option is to use the simulator and trace the system log file. This should tell you the error.

Thanks,

Tom

Sent from Windows Mail

From: Rafiqul Islam Sent: ‎22‎ ‎January‎ ‎2013 ‎03‎:‎30 To: tomasmcguinness/dotnet-passbook CC: Tomas McGuinness Subject: Re: [dotnet-passbook] Successfully Can Create StoreCard But Can't Add (#2)

Hi Tom, My pass creation works fine but when I click add button nothing happens. Any idea?

Thanks Raf

— Reply to this email directly or view it on GitHub.

mrafiq1465 commented 11 years ago

I created the pass from .net project.

How can I use xcode to debug? Can you pls explain? Considering, I have *.pkpass file.


From: Tomas McGuinness notifications@github.com To: tomasmcguinness/dotnet-passbook dotnet-passbook@noreply.github.com Cc: Rafiqul Islam mrafiq1465@yahoo.com Sent: Monday, 21 January 2013 9:54 PM Subject: Re: [dotnet-passbook] Successfully Can Create StoreCard But Can't Add (#2)

Hi Raf,

There can be any number of things wrong. The best way is to connect the iPhone to XCode and use the Console to view what the phone is saying.

Another option is to use the simulator and trace the system log file. This should tell you the error.

Thanks,

Tom

Sent from Windows Mail

From: Rafiqul Islam Sent: ‎22‎ ‎January‎ ‎2013 ‎03‎:‎30 To: tomasmcguinness/dotnet-passbook CC: Tomas McGuinness Subject: Re: [dotnet-passbook] Successfully Can Create StoreCard But Can't Add (#2)

Hi Tom, My pass creation works fine but when I click add button nothing happens. Any idea?

Thanks Raf

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.

tomasmcguinness commented 11 years ago

You just plug in an iPhone and enable it for development. Then, under the Devices section of the Organizer in XCode you can view the Console for the phone where lots of diagnostic information is generated.

Otherwise, use the iPhone Simulator. You can drag your pkpass file onto he simulator to view it. If you google for debugging passbook, you should find instructions for how to view the log file.

Thanks, Tom

www.about.me/tomasmcguinness

On 22 Jan 2013, at 05:56, "Rafiqul Islam" notifications@github.com wrote:

I created the pass from .net project.

How can I use xcode to debug? Can you pls explain? Considering, I have *.pkpass file.


From: Tomas McGuinness notifications@github.com To: tomasmcguinness/dotnet-passbook dotnet-passbook@noreply.github.com Cc: Rafiqul Islam mrafiq1465@yahoo.com Sent: Monday, 21 January 2013 9:54 PM Subject: Re: [dotnet-passbook] Successfully Can Create StoreCard But Can't Add (#2)

Hi Raf,

There can be any number of things wrong. The best way is to connect the iPhone to XCode and use the Console to view what the phone is saying.

Another option is to use the simulator and trace the system log file. This should tell you the error.

Thanks,

Tom

Sent from Windows Mail

From: Rafiqul Islam Sent: ‎22‎ ‎January‎ ‎2013 ‎03‎:‎30 To: tomasmcguinness/dotnet-passbook CC: Tomas McGuinness Subject: Re: [dotnet-passbook] Successfully Can Create StoreCard But Can't Add (#2)

Hi Tom, My pass creation works fine but when I click add button nothing happens. Any idea?

Thanks Raf

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.