Comments (4)
Working on it.
How are you going to do the tracking call? I assume native, but havent really thought about how to do that in a non native way. Ill also think about how you can put in the restore call into your flutter app while I am doing the update.
from airship-flutter.
I have this branch - #147
For live activities, you need to do a restore call and a track call when you start one. The track call is straightforward, but the restore call not so much since we call takeOff for the plugin. I think the best bet for you is to use this snippet in application:didFinishLaunching
NotificationCenter.default.addObserver(
forName: Airship.airshipReadyNotification,
object: nil,
queue: nil
) { _ in
if #available(iOS 16.1, *) {
Task {
await Airship.channel.restoreLiveActivityTracking {
restorer in
// update this to match your types
await restorer.restore(
forType: Activity<DeliveryAttributes>.self
)
}
}
}
}
That will allow you to integrate into AIrship without worrying about where takeOff is called.
from airship-flutter.
6.2.0 is out with the update
from airship-flutter.
Thanks @rlepinski! My problem was that the (mainly non-Flutter) project contained a single Flutter view, locking us into 16.9. I don't have any particular concerns about the live activity API yet.
from airship-flutter.
Related Issues (20)
- Airship.activeNotifications not parsing on iOS HOT 3
- Airship.addEvent doesn't work if CustomEvent's value is null HOT 2
- iOS production key HOT 3
- Flutter 3.10.0 support HOT 1
- Airship setUserNotificationsEnabled malfunction on Android HOT 1
- iOS push messages in foreground not working HOT 6
- iOS app icon badge behaves inconsistently HOT 1
- Android device debug issue HOT 5
- Android notifications are not displayed as Heads-up notifications HOT 2
- Airship.push.iOS.resetBadge is not calling the correct method name HOT 2
- Calling Airship.push.iOS.resetBadge crashes the app HOT 1
- Airship.messageCenter.onDisplay not parsing DisplayMessageCenterEvent properly HOT 2
- Crash on launch when using FlutterEngineGroup HOT 3
- Not able to get a push notification on my iOS device from a TEST Airship project HOT 5
- Push Icon Not Appearing in Android Release Build HOT 4
- Android: App is started by push message from terminated state HOT 2
- How to send a push notification prompt to a user and access the value in code on Android? HOT 5
- onPushReceived does run in background or terminated state in Iphone HOT 14
- iOS AirshipServiceExtension Example
- Push registration failed - Android HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airship-flutter.