离子iOS应用程序错误 - “WEB”客户端类型不允许自定义方案URI [英] Ionic iOS App Error - Custom Scheme URIs are not allowed for 'WEB' client type

查看:360
本文介绍了离子iOS应用程序错误 - “WEB”客户端类型不允许自定义方案URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此插件。

https://github.com/EddyVerbruggen/cordova-plugin-googleplus

该实现适用于Android。但谷歌登录iOS打开safari webview并抛出400 invalid_request。

The implementation works fine for android. But google sign in on iOS opens safari webview and throws 400 invalid_request.

我正在使用谷歌开发者控制台上生成的ios客户端ID和反向客户端ID。

I am using the ios client id and reverse client id generated on google developer console.

无论如何要调试或知道问题是什么?

Anyways to debug or know what the issue is?

推荐答案

通常的原因此错误的REVERSE_CLIENT_ID不正确。在Google开发人员控制台上设置iOS应用程序注册时,请仔细检查下载的plist文件中是否有REVERSE_CLIENT_ID。请注意,如果您输入错误,更改这很困难,因为它会被复制到各个位置,如果您只是尝试在 config.xml中更改它,则不会自动更新。当我错误地使用我的Android客户端ID设置插件时,我发现除了 config.xml 我还需要更改顶级 package.json 文件,以及 platforms / ios < appname> -Info.plist $ c>目录以获取正确使用的ID。

The usual cause of this error is having an incorrect REVERSE_CLIENT_ID. Double check that you have the REVERSE_CLIENT_ID from the plist file downloaded when you set up the iOS application registration on the Google developer console. Note that if you got it wrong, changing this is difficult, as it gets copied into various locations and won't update automatically if you just try to change it in config.xml. When I mistakenly used my Android client ID to set up the plugin, I found that as well as config.xml I also needed to change the top level package.json file, and the <appname>-Info.plist in the platforms/ios directory in order to get the correct ID used.

这篇关于离子iOS应用程序错误 - “WEB”客户端类型不允许自定义方案URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆