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
In order to support background execution, plugins can't store the activity as a field during registration time because the activity may not yet be available. The device info plugin was recently changed to do this.
If the application context will work, store the application context instead of the activity context. IIRC you can do this with the Registrar#context method.
If the activity context is required, store the Registrar and call Registrar#activity when its used.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
In order to support background execution, plugins can't store the activity as a field during registration time because the activity may not yet be available. The device info plugin was recently changed to do this.
https://github.com/flutter/plugins/blob/master/packages/device_info/android/src/main/java/io/flutter/plugins/deviceinfo/DeviceInfoPlugin.java#L33
The text was updated successfully, but these errors were encountered: