简体   繁体   English

Flutter / Firebase - 我的 iOS 设备在 WiFi 存储时无法连接到 ZBF12E1515C25C7D8C0352F14133AB9

[英]Flutter / Firebase - My iOS device will not connect to firebase / firestore while on WiFi

My Flutter app I have been working on will not retrieve data only when it IS connected to wifi.我一直在使用的 Flutter 应用程序只有在连接到 wifi 时才会检索数据。 It times out after 10 seconds. 10 秒后超时。 My cell phone it works fine.我的手机很好用。 When I run the app on an the simulator from my computer it works fine on wifi.当我在我的计算机上的模拟器上运行该应用程序时,它在 wifi 上运行良好。 I am not sure if there is some setting I need to have changed or what...我不确定是否需要更改某些设置或什么...

I have restarted my phone, computer, router and same thing.我已经重新启动了我的手机、电脑、路由器和同样的东西。

Just in case this helps someone else.以防万一这对其他人有帮助。 I was able to get my iPhone to connect to firebase over WiFi after I turned off the "Private Address" toggle button.关闭“私人地址”切换按钮后,我能够让我的 iPhone 通过 WiFi 连接到 firebase。

Using a private address helps reduce tracking of your iPhone across different Wi-Fi networks使用私人地址有助于减少跨不同 Wi-Fi 网络跟踪您的 iPhone

Settings App > WiFi > Select the connected wifi name > turned off Private Address.设置应用程序 > WiFi > Select 连接的 wifi 名称 > 关闭私人地址。

After I did this it started working.在我这样做之后,它开始工作。 I tried few more times with it on and off and eventually it started to work both ways.我尝试了几次打开和关闭它,最终它开始双向工作。 Maybe it was just renewing the IP address info I am not sure.也许它只是更新 IP 地址信息,我不确定。 I did restart my devices prior to doing this and it didn't fix it.在执行此操作之前我确实重新启动了我的设备,但它没有修复它。

My iOS Simulator wasn't working too on Mac, so I go to Network Preferences (Click on WiFi icon and you'll find it), and unchecked 'Limit IP Address Tracking', and after re-running the app it worked.我的 iOS 模拟器在 Mac 上也不能正常工作,所以我将 go 设置为网络首选项(点击 WiFi 图标,你会找到它),并取消选中“限制 ZA12A3079E14CED46E69BA52B8A9”,然后重新运行应用程序。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM