Closed onlyonex closed 12 years ago
Hello there, The pass type identifier is included in the passKit certificate that is created. The push token is received when the pass is registered. Are you using my code to generate the push message?
Tomas McGuinness Check out my blog at http://www.tomasmcguinness.com Follow me on twitter http://www.twitter.com/tomasmcguinness
Date: Mon, 8 Oct 2012 22:56:59 -0700 From: notifications@github.com To: dotnet-passbook@noreply.github.com Subject: [dotnet-passbook] Send update notification (#7)
Hi Tomas,
I'm using the passkit certificate send the pass update notification, but I can't receive the notification, In the websit https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Updating.html#//apple_ref/doc/uid/TP40012195-CH5-SW1, it says the notification will be added the pass type identifier , but in your code, I can't find it, is it any issues? thanks!
—
Reply to this email directly or view it on GitHub.
Yes, but the code is stop at the place sslStream.Read(response, 0, 6) wait for response from apns.
Yes, it shouldn't take long to return. If you press F10 in VS 2012 to step, it should allow you to read the value. Alternatively, you could add an extra line of code to print the response.
Tomas McGuinness Check out my blog at http://www.tomasmcguinness.com Follow me on twitter http://www.twitter.com/tomasmcguinness
Date: Tue, 9 Oct 2012 00:15:35 -0700 From: notifications@github.com To: dotnet-passbook@noreply.github.com CC: tomas@tomasmcguinness.com Subject: Re: [dotnet-passbook] Send update notification (#7)
Yes, but the code is stop at the place sslStream.Read(response, 0, 6) wait for response from apns.
—
Reply to this email directly or view it on GitHub.
I add the code to print the response, and I waited for about five minutes for response from apns, but I still can't receive the response.
You are using the production certificate? Have you pointed to the production apns server?
www.about.me/tomasmcguinness
On 10 Oct 2012, at 02:38, "Harleyd210" notifications@github.com wrote:
I add the code to print the response, and I waited for about five minutes for response from apns, but I still can't receive the response.
— Reply to this email directly or view it on GitHub.
Yes, using the production certificate, and pointed to gateway.push.apple.com, If the device received the notification, what will happen, does it alert a empty message on device screen?
Okay, If the notification is received, it will make a request to the webserver to fetch the serial numbers of the passes that have been updated. In my reference implementation, this is the Get method of the PassRegistrationController. If any of the serial numbers returned match the serial numbers of passes in the user's passbook, it will make a call to the GetPass method. This should then return a new pass with the updated values.Are you able to debug the device? You should be able to monitor the console of an iPhone using XCode and see does that show a push message has been received. If I get some time this evening I'll will put together an email that shows what you should expect with some screenshots etc. Would you find that useful?
Tomas McGuinness Check out my blog at http://www.tomasmcguinness.com Follow me on twitter http://www.twitter.com/tomasmcguinness
Date: Wed, 10 Oct 2012 00:38:51 -0700 From: notifications@github.com To: dotnet-passbook@noreply.github.com CC: tomas@tomasmcguinness.com Subject: Re: [dotnet-passbook] Send update notification (#7)
Yes, using the production certificate, and pointed to gateway.push.apple.com, If the device received the notification, what will happen, does it alert a empty message on device screen?
—
Reply to this email directly or view it on GitHub.
@Harleyd210
from your repository I can see 2 things:
199
of the PassGeneratorRequest.cs
changeMessage
property so the device shows information on the screenIt's with the changeMessage
property that you specify the information on the home screen, if not given, the pass will just be updated with no notification.
This was valid pre-GM, please @tomasmcguinness, verify if it's still valid.
@tomasmcguinness @balexandre Yes, actually the pass has updated, I thought that the pass didn't pass because I can't seen any notification. thank!
That's fantastic!
Tomas McGuinness Check out my blog at http://www.tomasmcguinness.com Follow me on twitter http://www.twitter.com/tomasmcguinness
Date: Sat, 13 Oct 2012 00:23:30 -0700 From: notifications@github.com To: dotnet-passbook@noreply.github.com CC: tomas@tomasmcguinness.com Subject: Re: [dotnet-passbook] Send update notification (#7)
@tomasmcguinness @balexandre
Yes, actually the pass has updated, I thought that the pass didn't pass because I can't seen any notification. thank!
—
Reply to this email directly or view it on GitHub.
Hi Tomas,
I'm using the passkit certificate send the pass update notification, but I can't receive the notification, In the websit https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Updating.html#//apple_ref/doc/uid/TP40012195-CH5-SW1, it says the notification will be added the pass type identifier , but in your code, I can't find it, is it any issues? thanks!