ionic-framework - this.googlePlus.login() 函数中的plugin_not_installed

标签 ionic-framework ionic3 ionic-view

我正在尝试使用 Ionic google plus plugin在我的 ionic 应用程序中。 当我调用 this.googlePlus.login() 函数时,Android 设备中出现错误 plugin_not_installed:

this.platform.ready(() => {
    this.googlePlus.login({})
        .then(res => console.log(res))
        .catch(err => console.log(err));
});

我使用命令安装了插件:

ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid
npm install --save @ionic-native/google-plus

我将 GooglePlus 添加到了 AppModule 中的提供商列表

我使用命令上传应用程序:ionic upload

这是我的插件列表(ionic cordova 插件):

cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-googleplus 5.1.1 "Google SignIn"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-nativestorage 2.2.2 "NativeStorage"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 2.0.0-rc5 "PushPlugin"

最佳答案

Ionic View 似乎尚不支持 cordova-plugin-googleplus。您可以找到支持的插件列表 here

截至今天(2017 年 7 月 31 日),支持的插件列表为:

View supports a subset of the plugins found in Ionic Native:

ActionSheet 2.2.2
BarcodeScanner 5.0.0
BLE 1.1.1
Bluetooth Serial 0.4.5
Calendar 4.5.0
Camera 2.2.0
Capture 1.3.0
Contacts 2.1.0
DatePicker 0.9.3
DBMeter 1.0.3
Device 1.1.2
Device Motion 1.2.1
Device Orientation 1.0.3
Dialogs 1.2.1
Email Composer 0.8.3
Geolocation 2.2.0
Globalization 1.0.3
ImagePicker 1.1.1
Keyboard 2.2.0
Media 2.3.0
Network Information 1.2.1
SocialSharing 5.1.1
SQLite 1.4.2
StatusBar 2.1.3
Toast 2.5.2
Touch ID 3.2.0
Vibration 2.1.1

关于ionic-framework - this.googlePlus.login() 函数中的plugin_not_installed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45415989/

相关文章:

css - Ionic 3 - 将图像 float 到容器的右侧

android - Ionic3 构建错误 : Could not find play-services-auth-base. aar (15.0.1)

css - ionic 图像叠加

angular - 侧边菜单和页面在再次设置根页面后没有响应 Ionic 2 Beta 11

ios - iOS 上的 Ionic 4 Popover、Alertsheet 等会向后滚动内容,而不是弹出窗口本身

android - ionic 3 : more than one library with package name 'com.google.android.gms.license'

使用cordova时出现JAVA_HOME错误

javascript - ionic 混合移动应用程序获取设备位置

ionic-framework - 如何使 ion-scroll 适合或包裹其中的所有内容?

javascript - 如何在 Angular JS 中使用指令。在我的情况下不起作用,为什么?