首页 > 解决方案 > Ionic 4 cordova Googleplus 插件无法在生产中运行

问题描述

我已经在 Ionic 4 应用程序中实现了科尔多瓦的 googleplus 插件。我仔细遵循了这里给出的所有步骤: 步骤

注意我没有使用firebase,而是从开发者控制台我得到了WEB_CLIENT_ID和REVERSED_CLIENT_ID 这是package.json

"cordova-plugin-media": {},
  "cordova-plugin-googleplus": {
    "WEB_APPLICATION_CLIENT_ID": "xxxxxx.googleusercontent.com"
  }

在 config.xml 我添加了

<plugin name="cordova-plugin-googleplus" source="npm">
    <variable name="REVERSED_CLIENT_ID" value="xxxxxxx.apps.googleusercontent.com" />
</plugin>

请注意应用程序在调试和生产模式下运行完美,没有任何错误(我使用我拥有的发布密钥更改了 REVERSED_CLIENT_ID)

但是我在 Playstore 中部署签名版本时遇到问题,安装 Gooleplus 功能后无法正常工作。包含设备中电子邮件 ID 的弹出窗口在单击后会消失,而不会显示任何错误。

请任何人帮助。谢谢。

标签: angularjscordovaionic4google-plus

解决方案


推荐阅读