My app works perfectly in DEBUG mode. But when I create a release APK or run in release mode I get an only white screen after starting the app. After some trying, I detected that the problem is in method, that I call after runApp(); But what is the problem?
void handleAppLifecycleState() {
SystemChannels.lifecycle.setMessageHandler((msg) async {
if (msg == "AppLifecycleState.resumed") {
await updateStatusBar();
}
return Future.value(msg);
});
}