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

Starting iOS Live Activities #559

Closed
robwalkerco opened this issue Apr 17, 2024 · 4 comments
Closed

Starting iOS Live Activities #559

robwalkerco opened this issue Apr 17, 2024 · 4 comments

Comments

@robwalkerco
Copy link

Hey, I'm super excited to be able to start iOS Live Activities via push notifications.

I see that airship-mobile-framework-proxy is progressing to support ios-library 18.x.x
(See urbanairship/airship-mobile-framework-proxy#38)

Do you have any idea when we can expect react-native-airship to be updated to add support for starting Live Activities via push notification (Supported from https://github.com/urbanairship/ios-library/releases/tag/18.0.0)?

@rlepinski
Copy link
Collaborator

Probably this week. Do you have a good place to call restore & track in react native?

@robwalkerco
Copy link
Author

Probably this week.

Amazing

Do you have a good place to call restore & track in react native?

We are using Expo with react-native-widget-extension (patched) to support Activities and integrate with Airship.

Currently, the Airship integration is basically just calling Airship.channel.restoreLiveActivityTracking(...).

I can see the example at https://docs.airship.com/platform/mobile/ios-live-activities/#starting-and-tracking-a-live-activity-from-a-push-notification with which adds the following to support the new functionality

Activity<DeliveryAttributes>.airshipWatchActivities { activity in
    Airship.channel.trackLiveActivity(activity, name: activity.attributes.orderNumber)
}

So we should be good to add that to our current setup, and be good to go 🎉

@rlepinski
Copy link
Collaborator

#560

@rlepinski
Copy link
Collaborator

18.0.0 is out

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