parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 865 forks source link

Add Live Activities support #1713

Open torodavit opened 1 year ago

torodavit commented 1 year ago

Everyone know this feature

I am using parse In my apps. I love it. Now Need This feature.

Need Live activities Support!!!

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!

mtrezza commented 1 year ago

Could you please edit your post and describe the feature? Do you mean LiveQuery support?

mman commented 1 year ago

@mtrezza Very vague future request, but I think the OP wanted to point out that when your iPhone app uses and supports Live Activities (https://developer.apple.com/documentation/activitykit/updating-and-ending-your-live-activity-with-activitykit-push-notifications) you can actually ask the Live Activity to update itself by sending it a push notification.

We currently store APNS push token in _Installation class representing an instance of the app. When you start a Live Activity from your app, you actually get another separate APNS push token so that the Live Activity running in an extension can receive a push notification independently from the main app. At least this is how I understand it.

We have no place to store this push token yet, and we have no functionality to send the notification to this push token at the moment.

Needs more thinking. I'd leave for @torodavit to fill in more details...

dplewis commented 1 year ago

@mman I did a PR on the APN repo. https://github.com/parse-community/node-apn/pull/130

You can get this working by creating a new ParseInstallation with a channel (live activity) and live activity deviceToken, query it and push to it once the push adapter gets updated.