0

我正在使用这个 php 库(https://github.com/tschoffelen/PHP-PKPass)为事件创建一个苹果存折。

它在我的手机和所有内容上都可以正常打开,但即使我使用的是相关日期,正如这里所说的(https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html#// apple_ref/doc/uid/TP40012195-CH4-SW53)。

我尝试了今天的日期和明天的日期,但仍然没有出现在锁定屏幕上。

这是 pass.json

{
        "description": "Event Confirmation",
        "formatVersion": 1,
        "organizationName": "EventTest",
        "passTypeIdentifier": "pass.com.eventtest.confirmation",
        "serialNumber": "#########",
        "teamIdentifier": "######",
        "expirationDate": "2017-05-04T23:00:00Z",
        "relevantDate": "2017-04-28T07:00Z",
        "eventTicket": {
            "headerFields": [{
                "key": "eventHeader",
                "label": "TEST",
                "value": ""
            }],
            "secondaryFields": [{
                "key": "nameSecondaryFields",
                "label": "Name",
                "value": "Federico Giust"
            }],
            "auxiliaryFields": [{
                "key": "locAuxiliaryFields",
                "label": "Brixton Academy",
                "value": "Brixton, London, UK"
            }, {
                "key": "startdateAuxiliaryFields",
                "label": "Start Date",
                "value": "28-04-2017"
            }, {
                "key": "enddateAuxiliaryFields",
                "label": "End Date",
                "value": "05-05-2017"
            }],
            "backFields": [{
                "key": "eventBackFields",
                "label": "TEST",
                "value": "Test Project - Local"
            }, {
                "key": "locBackFields",
                "label": "Brixton Academy",
                "value": "Brixton, London, UK"
            }, {
                "key": "startdateBackFields",
                "label": "Start Date",
                "value": "28-04-2017"
            }, {
                "key": "enddateBackFields",
                "label": "End Date",
                "value": "05-05-2017"
            }, {
                "key": "eventDescription",
                "label": "Description",
                "value": "Project Description goes here"
            }, {
                "key": "eventURL",
                "label": "Website",
                "value": "https:\/\/www.eventtest.com"
            }, {
                "key": "eventT&C",
                "label": "Terms and Conditions",
                "value": "Terms & Conditions"
            }]
        },
        "barcode": {
            "altText": "4156452",
            "format": "PKBarcodeFormatQR",
            "message": "4156452",
            "messageEncoding": "iso-8859-1"
        },
        "backgroundColor": "rgb(255,255,255)",
        "foregroundColor": "rgb(000, 000, 000)",
        "logoText": "Test Project - Local"
    }

有人知道存折应该提前多久出现在锁定屏幕上吗?我错过了另一个领域吗?

我已经启用了位置服务并启用了钱包通知,并且它适用于其他存折。

谢谢

4

0 回答 0