You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixeszulip#1119.
With Flutter from main, in release mode, the app would no longer
show notifications on Android when it was in the background.
This error message appears in logcat:
```
DartVM E ERROR: To access 'package:zulip/notifications/receive.dart::NotificationService' from native code, it must be annotated.
ERROR: See https://github.com/dart-lang/sdk/blob/master/runtime/docs/compiler/aot/entry_point_pragma.md
```
It looks like the relevant upstream commit is probably this one:
dart-lang/sdk@9b06e26
AFAICT those docs don't actually say that we should need to annotate
the class. We already do annotate the static *method* on this class
which we ask native code to call, namely `_onBackgroundMessage`.
At least the error message is nice and clear, though.
0 commit comments