パスを作成しました。電子メールまたはアプリまたは Web サーバーで通帳に追加できます。テストのために他の人に送信すると、Mail.app で開いてパスを見ることができますが、追加ボタンをクリックしても通帳には何も追加されません。なぜそうなのですか?
1 に答える
The issue is because your webServiceURL is HTTP, not HTTPS.
"webServiceURL" : "http://192.168.1.202:8888/passesWebserver/"
The pass will load on your device because you have enabled "Allow HTTP Services" in the PassKit Testing section of the Developer menu in your device's settings.
For non-development devices (or development devices that don't have this option set), the webServiceURL has to be HTTPS.
To fix this, either change your webServiceURL to https://192.168.1.202:8888/passesWebserver/
, or ask the people who you are sending the pass to, to Allow HTTP Services (note, they will require development devices to be able to do so).
Also note that if you change to https, your webServiceURL will probably not work because your MAMP server is not configured for SSL on port 8888.