1

我正在尝试开发一个能够在 youtube 上流式传输的 Xamarin 项目。我想从用户帐户中获取 rtmp url。但是,最近 google 已禁用 webviews 以授权应用程序获取 accesstoken 和其他用户数据。

我曾尝试使用 Xamarin Auth,但不幸的是,它实际上使用的是 webview。(getUI() 正在返回一个 webview)。

所以我问是否有人知道如何在没有 webviews 的情况下使用 google 验证用户?

我也尝试过使用自定义选项卡,但我无法获取获取访问令牌的 url,因为在加载新页面时不会触发 NavigationEvent。

4

1 回答 1

0

Xamarin.Auth 1.4.x supports Custom Tabs and SafariViewController, but no Xamarin.Forms support what most of the users want. Xamarin.Forms support is in the 1.5.0-alpha soon to be released.

Samples extracted from the repo:

https://github.com/moljac/Xamarin.Auth.Samples.NugetReferences

Try ComicBook (Xamarin.Forms) or Providers (Traditional/Standard).

Nuget packages tuning can be problematic, just bump versions to the highest.

于 2017-05-09T22:21:11.487 回答