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
Sorry, it worked, but the widget refreshes in 3.4 seconds on the first click after the app is closed or the first widget is created. I think it takes time to connect the flutter engine. Can we add a new function for this bad case?
My device is Android ( Samsung S10 )
void main() {
HomeWidget.registerInteractivityCallback(backgroundCallbackHomeWidget);
...
}
@pragma('vm:entry-point')$uri $ {uri?.host}');
Future backgroundCallbackHomeWidget(Uri? uri) async {
print('uri
await AppWidgetBackground.initCall();
bool isRegistered = locator.isRegistered();
if (!isRegistered) {
try {
await configureDependenciesHomeWidget(envDev);
isRegistered = true;
} catch (e) {
log('Error $e');
AppWidgetBackground.closeWithoutInject();
}
}
if (isRegistered) {
AppWidgetBackground.init(locator, uri);
}
}
The text was updated successfully, but these errors were encountered: