首页 文章

谷歌登录使用cordova googleplus插件

提问于
浏览
0

我希望使用 cordova googleplus plugin 在cordova应用程序中使用google帐户登录android平台 . 所以我在谷歌帐户上的控制台开发者google上制作了一个Android应用程序,并将其与我的cordova应用程序集成,但当我尝试在模拟器上运行我的cordova应用程序时,我面临着 code:8 的错误,当我在Android手机上运行时,错误变为 error:12501 .

那么如何解决它在我的cordova应用程序上运行谷歌登录?

1 回答

  • 0

    将包名添加到config.xml文件中,如下所示:

    以下是如何为Android项目指定Device API:

    <feature name="Device">
    <param name="android-package" value="com.xxxx.xxxxx" />
    </feature>
    

    以下是iOS项目的元素显示方式:

    <feature name="Device">
    <param name="ios-package" value="com.xxxx.xxxxx" />
    <param name="onload" value="true" />
    </feature>
    

相关问题