Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Activity widget receive apns data? #3

Open
erduoniba opened this issue Oct 13, 2022 · 2 comments
Open

How Activity widget receive apns data? #3

erduoniba opened this issue Oct 13, 2022 · 2 comments

Comments

@erduoniba
Copy link

erduoniba commented Oct 13, 2022

I'm not understand how activity widget receive apns data and to refresh ui
can you update demo tutorial? tks

maybe we can use this to simulate apns:

 {
    "aps":{
        "timestamp":1168364460,
        "event":"update",
        "content-state":{
            "courierName": "harry"
        },
        "alert":{
            "productId": "2022101101",
            "title":"title",
            "body":"body",
            "sound":"example.aiff"
        }
    },
    "Simulator Target Bundle": "com.batikan.LiveActivityKit",
}

or

{
    "aps":{
        "timestamp":1168364460,
        "event":"update",
        "content-state":{
            "courierName": "harry"
        },
        "alert":{
            "productId": "2022101101",
            "title":"title",
            "body":"body",
            "sound":"example.aiff"
        }
    },
    "Simulator Target Bundle": "com.batikan.LiveActivityKit.Widget",
}

@batikansosun
Copy link
Owner

batikansosun commented Oct 14, 2022

Hi @erduoniba an important note from Apple developer documentation is below.

That To test remote push notifications for Live Activities in Simulator, use a Mac with the Apple T2 Security Chip or a Mac with Apple silicon that runs macOS 13 or later.

I haven't a Mac that uses Apple T2 Security Chip. I use a Mac with Apple silicon and, I wait for macOS 13(Ventura) to be a public release. When that happened, I will try to test it by simulator notification and update the tutorial for that.

Thank you for your kind feedback.

@erduoniba
Copy link
Author

Looking forward to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants