istornz / flutter_live_activities

A Flutter plugin to use iOS 16.1+ Live Activities ⛹️ & iPhone Dynamic Island 🏝️ features
https://dimitridessus.fr/
MIT License
175 stars 54 forks source link

Communication between native thread and flutter #73

Open henkaumio opened 8 months ago

henkaumio commented 8 months ago

Hey sorry for creating an issue to ask my question.

Is there any way to send data from native to flutter without opening the app via urlScheme/Deeplink? I would like to create a timer that can be resumed and paused from the liveactivity widget, so i would like to update the flutter state from the native side without opening the app.

Thanks

istornz commented 8 months ago

Hello @henkaumio I think you could take a look at MethodChannel :)

https://medium.com/@iiharish97ii/method-channel-in-flutter-bridging-native-code-and-flutter-with-two-way-communication-788d1e91c8c1

charlesRmajor commented 7 months ago

Hello @henkaumio I think you could take a look at MethodChannel :)

https://medium.com/@iiharish97ii/method-channel-in-flutter-bridging-native-code-and-flutter-with-two-way-communication-788d1e91c8c1

Hey @henkaumio, were you able to get this working?