flutter_wear_plugin
flutter_wear_plugin copied to clipboard
Ambient Mode not working in release mode
AmbientMode worked fine in debug mode, but when I build apk in release mode, it doesn't work.
The flutter should have rebuilt the screen right before it entered ambient mode, but it seemed that rebuild didn't occur. The screen just stopped when it entered ambient mode. (I'm using Samsung Galaxy Watch 5)
I tried to get the event log, but nothing was printed. (Other prints were received correctly.)
Same issue. Works 'fine' in debug (also works in profile, just checked), but nothing is happening in release.
AmbientMode(builder: (context, mode, child) {
return mode == WearMode.ambient
? AmbientScreen(
manager: manager,
)
: ActiveScreen(
manager: manager,
box: box,
);
}),
Edit: also using Galaxy Watch 5.
Until that PR gets merged, just add the following to your app's proguard config
-keep class com.mjohnsullivan.flutterwear.wear.** { *; }
I released the wear_plus plugin which contains the necessary fixes
Thank you for your work. I appreciate it.