为什么 "appAuthRedirectScheme" 作为清单占位符没有效果?

Why does "appAuthRedirectScheme" as manifest placeholder has no effect?

我正在尝试使用 flutter 构建一个简单的单点登录示例。因此,我需要在身份提供者进行身份验证后将用户重定向回我的应用程序。我使用 Flutter AppAuth 插件来这样做。但即使我按照“入门”部分进行操作,它也不起作用。 我已经添加

manifestPlaceholders = [
  'appAuthRedirectScheme': 'my.example.redirect'
]

到我的成绩文件,但应用程序的默认打开页面没有显示任何内容:

当我在 chrome 中输入“my.example.redirect/test”之类的 URL 时,它不会打开应用程序。

所以有没有人知道我在这里做错了什么?

我想,你使用 return url 错了,发送类似“my.example.redirect:/callback”的内容 因为方案在路径之前,例如方案 http 或 https。

希望对您有所帮助。