【发布时间】:2020-07-24 08:57:10
【问题描述】:
我正在尝试移植我使用 Flutter 为 Android 和 iOS 制作的应用程序,并在网络上运行它。 由于我使用 Google 和 Facebook 登录框架,因此即使原始 url 是 localhost,也需要使用“https”地址。我正在使用 Web Server 运行选项,该选项在 Android Studio 的内置 Web 服务器中运行应用程序。
我正在使用命令行中的以下命令运行 Web 应用程序:
flutter run -d web-server --web-hostname=`hostname` --web-port=8080 --profile -v
并且使用我在 Google API 控制台中指定的端口,但由于我没有使用“https”并且连接不安全,我仍然无法在其中一个平台中进行身份验证。
有没有人遇到过这个问题并知道如何解决?如果您能就此事提供任何帮助,我将不胜感激。
【问题讨论】:
标签: android-studio flutter dart https flutter-web