2016-04-06 6 views
0

私は正常にウォレットにメール経由でパスを追加しました。ウォレットアプリでパスが表示されますが、パスの裏側で更新するためにプッシュすると更新されたパスは表示されません。PKパスを更新するためにウォレットアプリで更新されない

passd[119] <Warning>: Verifying structure and signature for pass pass.com.test.pass/‎1 
passd[119] <Warning>: Signature validation: succeeded 
passd[119] <Warning>: Generating POST request with URL <my_https_url/api/PassRegistration/v1/devices/70e435342e38df4e4346e779c6dff6e3/registrations/pass.com.test.pass/%25E2%2580%258E1> 
passd[119] <Warning>: Request contains header field <Authorization: ApplePass my_token> 
passd[119] <Warning>: Request contains body dictionary { 
     pushToken = 93b5d5cxxxxxxxxxxxxxxxxxxxxxxxxxxx_similar; 
    } 
passd[119] <Warning>: Register task (for device 70e435342e38df4e4346e779c6dff6e3, pass type pass.com.test.pass, serial number ‎1; with web service url my_https_url/api/PassRegistration/) got response with code 201 

passd[119] <Warning>: Generating GET request with URL <my_https_url/api/PassRegistration/v1/devices/70e435342e38df4e4346e779c6dff6e3/registrations/pass.com.test.pass> 
passd[119] <Warning>: Get serial #s task (for device 70e435342e38df4e4346e779c6dff6e3, pass type pass.com.test.pass, last updated (null); with web service url my_https_url/api/PassRegistration/) got response with code 200 
passd[119] <Warning>: Get serial numbers task completed with update tag 1459943482, serial numbers (
     1 
    ) 
passd[119] <Warning>: Get pass task (pass type pass.com.test.pass, serial number ‎1, if-modified-since (null); with web service url my_https_urlapi/PassRegistration/) got response with code 200 
passd[119] <Warning>: Verifying structure and signature for pass pass.com.test.pass/1 
passd[119] <Warning>: Signature validation: succeeded 
passd[119] <Warning>: Get pass task (pass type pass.com.test.pass, serial number ‎1, if-modified-since (null); with web service url my_https_url/api/PassRegistration/) encountered error: Requested serial number ‎1, received serial number 1 
passd[119] <Warning>: Get pass task (pass type pass.com.test.pass, serial number ‎1, if-modified-since (null); with web service url my_https_url/api/PassRegistration/) will retry after 60 seconds 

私のパスのいくつかの部分は次のようになります:更新のWebサービス呼び出しで

"storeCard": { 
    "headerFields": [ 
     { 
     "key": "lessons", 
     "label": "Points", 
     "value": "200" 
     } 
    ], 

、私はバイナリ形式で同じパスを通過したが、500の予想される出力にポイント値である。ここのログがありますポイントを200の代わりに500として表示します。「パスを更新できませんでした」というメッセージが表示されるメッセージが更新されると表示されます。私はiPhone4sでIOS 9.2.1でテストしています。

Iは呼ば:

response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.apple.pkpass"); 
response.Content.Headers.LastModified = DateTime.UtcNow; 
response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment"); 
response.Content.Headers.ContentDisposition.FileName = "pass.pkpass"; 
response.Content.Headers.ContentDisposition.Name = "pass.pkpass"; 
+0

コンソール出力の最後のステートメントは、Webサービスが新しい.pkpassバンドルで応答していないことを示しています。 「バイナリ形式で応答しました」と言えば、その最終呼び出しに応じて何を送信していますか? – PassKit

+0

私はgeneratePassバイト配列として応答しています:response.Content = new ObjectContent (generatedPass、new BinaryMediaTypeFormatter()); – bunty

+0

ヘッダーはどのように設定していますか?あなたのコンテンツタイプは何ですか? – PassKit

答えて

1

複数があると思われる:私は私は、次のヘッダ・パラメータと試みhttps://github.com/horizon-institute/AffectiveComputingCloud/blob/master/AffectiveComputingCloud/RestAPIWebRole/Formatter/BinaryMediaTypeFormatter.cs

からの基準に従ってBinaryMediaTypeFormatter()に変更動作しなかったBinaryFormatter()https://github.com/yuchaoonline/ytoo.service/blob/master/dotnet-passbook-master/Passbook.Sample.Web/Controllers/PassRegistrationController.cs

方法間違ったコンテンツタイプのような問題。コンテンツタイプをapplication/vnd.apple.pkpassに変更し、更新されたパスに更新日を渡すと、問題が解決されました。

+0

あなたは何が間違っていたかを列挙することができますか?またはupdateSを行ったapi-controllerのコードを共有できますか? –

関連する問題