Open imod opened 4 years ago
I have experienced similar problems.
This scenario works for me:
1) run app without await: remoteDevtools.connect();
2) add await: await remoteDevtools.connect();
and do hot reload
And don't forget about firewall.
I had the same issue, and did the following :
await (remoteDevTools.connect() as Future).timeout(Duration(seconds: 10));
Sometimes when launching the application it will not connect, and if I hot reload after that, it will be ok.
Hey everyone, quick question:
Does your app hang on the white screen if you already have the remote devtools open in a web browser (ie you have localhost:8000 open in chrome)?
I'm trying to get to the bottom of this, and I think what I am seeing is remotedev-server not accepting packets unless you have the browser tab open.
One workaround for this is to do what @denis-isaev does, and not await
the connect call. Indeed, in apps that I work on, we don't await
connect.
Just trying to better understand the issue.
Cheers
My environment setup is:
I use the following code to setup my store:
I start the server with:
remotedev --port 8000
when starting the app on the iOS simulator I only get the following output (please note the
log(...)
-call in the store setup code):after a couple of minutes, the following output also comes along:
so there is no
after connect
and screen in the iOS simulator will just stay white. The IP in the code is correct, but I also get the same behaviour when I uselocalhost:8000
Is there any way I can debug this in more details?when I remove the remote dev tools and just use the alternative
LoggingMiddleware.printer()
, everything works fine.