plugin_not_installed in this.googlePlus.login() function - ionic-framework

I'm trying to use Ionic google plus plugin in my Ionic application.
I have a error plugin_not_installed in Android device when I call this.googlePlus.login() function:
this.platform.ready(() => {
this.googlePlus.login({})
.then(res => console.log(res))
.catch(err => console.log(err));
});
I installed plugin using commands:
ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid
npm install --save #ionic-native/google-plus
And I added GooglePlus to my providers list in AppModule
I upload application using command: ionic upload
Here is my plugins list (ionic cordova plugin):
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"

Seems like the cordova-plugin-googleplus is not yet supported by Ionic View. You can find a list of the supported plugins here.
As of today (July 31, 2017), the list of supported plugins is:
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

Related

How do I identify which flutter packages are blocking others from being updated to latest version?

I want to upgrade my dependencies to the latest possible, but I can't because they are being blocked by one of the packages.
How can I tell which one is causing the issue where others can't be updated? They pretty much all seem to be outdated. Running flutter pub outdated gives me the list of my packages where the resolvable and updatable are always the same as my current package.
> flutter pub outdated
Showing outdated packages.
[*] indicates versions that are not the latest available.
Package Name Current Upgradable Resolvable Latest
direct dependencies:
bip39 *1.0.3 *1.0.3 *1.0.3 1.0.6
cloud_firestore *0.16.0+1 *0.16.0+1 *0.16.0+1 1.0.5
firebase_auth *0.20.1 *0.20.1 *0.20.1 1.1.0
firebase_core *0.7.0 *0.7.0 *0.7.0 1.0.3
firebase_storage *7.0.0 *7.0.0 *7.0.0 8.0.3
flutter_blue *0.7.3 *0.7.3 *0.7.3 0.8.0
google_maps_flutter *1.2.0 *1.2.0 *1.2.0 2.0.3
http *0.12.2 *0.12.2 *0.12.2 0.13.1
image *2.1.19 *2.1.19 *2.1.19 3.0.2
image_picker *0.6.7+22 *0.6.7+22 *0.6.7+22 0.7.4
local_auth *0.6.3+4 *0.6.3+4 *0.6.3+4 1.1.4
permission_handler *5.1.0+2 *5.1.0+2 *5.1.0+2 6.1.3
transitive dependencies:
archive *2.0.13 *2.0.13 *2.0.13 3.1.2
args *1.6.0 *1.6.0 *1.6.0 2.0.0
bech32 *0.1.2 *0.1.2 *0.1.2 0.2.0
bip32 *1.0.7 *1.0.7 *1.0.7 1.0.10
bs58check *1.0.1 *1.0.1 *1.0.1 1.0.2
cloud_firestore_platform_interface *3.0.2 *3.0.2 *3.0.2 4.0.1
cloud_firestore_web *0.3.0+2 *0.3.0+2 *0.3.0+2 1.0.5
convert *2.1.1 *2.1.1 *2.1.1 3.0.0
crypto *2.1.5 *2.1.5 *2.1.5 3.0.1
firebase_auth_platform_interface *3.1.0 *3.1.0 *3.1.0 4.1.0
firebase_auth_web *0.3.3 *0.3.3 *0.3.3 1.0.6
firebase_core_platform_interface *3.0.1 *3.0.1 *3.0.1 4.0.0
firebase_core_web *0.2.1+3 *0.2.1+3 *0.2.1+3 1.0.2
firebase_storage_platform_interface *1.0.4 *1.0.4 *1.0.4 2.0.1
firebase_storage_web *0.1.1+3 *0.1.1+3 *0.1.1+3 1.0.3
fixnum *0.10.11 *0.10.11 *0.10.11 1.0.0
flutter_plugin_android_lifecycle *1.0.11 *1.0.11 *1.0.11 2.0.1
google_maps_flutter_platform_interface *1.2.0 *1.2.0 *1.2.0 2.0.4
hex *0.1.2 *0.1.2 *0.1.2 0.2.0
http_parser *3.1.4 *3.1.4 *3.1.4 4.0.0
image_picker_platform_interface *1.1.6 *1.1.6 *1.1.6 2.1.0
intl *0.16.1 *0.16.1 *0.16.1 0.17.0
permission_handler_platform_interface *2.0.2 *2.0.2 *2.0.2 3.1.3
petitparser *3.1.0 *3.1.0 *3.1.0 4.1.0
plugin_platform_interface *1.0.3 *1.0.3 *1.0.3 2.0.0
pointycastle *1.0.2 *1.0.2 *1.0.2 3.0.1
protobuf *1.1.3 *1.1.3 *1.1.3 2.0.0
quiver *2.1.5 *2.1.5 *2.1.5 3.0.1
rxdart *0.24.1 *0.24.1 *0.24.1 0.26.0
source_span *1.8.0 *1.8.0 *1.8.0 1.8.1
stream_transform *1.2.0 *1.2.0 *1.2.0 2.0.0
uuid *2.2.2 *2.2.2 *2.2.2 3.0.4
xml *4.5.1 *4.5.1 *4.5.1 5.1.0

Ionic 3 missing ionic starter folder in platforms folder

Tried to run ionic cordova platform add android#6.3.0 latest ionic version and do not why but the platforms\android\src\io\ionic\starter folder is missing where MainActivity.java is located
Tried reinstalling a new ionic version but still misses. I am installing specific 6.3.0 android version which was working perfectly fine in my previous build, so not sure why its missing the starter folder
Ionic info details below
#ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 6.5.0
local packages:
#ionic/app-scripts : 3.1.10
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v6.11.3
npm : 3.10.10
OS : Windows 10
Environment Variables:
ANDROID_HOME : C:\Users\Oreo\AppData\Local\Android\sdk\
Misc:
backend : pro
Main Activity java can be found in below location
.. \platforms\android\app\src\main\java\com\...
Why do you need this file? If you are building an app, APK can be found in below path
platforms\android\app\build\outputs\apk\release

Plugin doesn't support this project's cordova-android version. While installing cordova-plugin-geofence plugin

C:\My App\test>ionic cordova plugin add cordova-plugin-geofence
cordova plugin add cordova-plugin-geofence --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted
{"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
minimist#1.2.0
xml2js#0.4.19
updated 2 packages in 33.453s
Installing "cordova-plugin-geofence" for android
Installing "cordova-plugin-add-swift-support" for android
Android Studio project detected
Installing "cordova-plugin-compat" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 7.0.0, failed
version requirement:
<6.3.0
Skipping 'cordova-plugin-compat' for android
Installing "es6-promise-plugin" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-geofence to package.json
Saved plugin info for "cordova-plugin-geofence" to config.xml
Ionic Versions Info :
cli packages: (C:\Users\Shadab\AppData\Roaming\npm\node_modules)
#ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
#ionic/app-scripts : 3.1.9
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.9.4
npm : 5.6.0
OS : Windows 7
Environment Variables:
ANDROID_HOME : C:\Users\Shadab\AppData\Local\Android\sdk;
Misc:
backend : pro
Run the "cordova platforms" command to see what version of android you have. In my case I was using 6.2.3. What I did is I updated my android version using the "cordova platform update android#6.3.0"command. After that add the plugins again and you should be good to go.

Ionic android build prod failed in android

i am using ionic 2 for hybrid application development. Once i build the android application using following command.
ionic build android --prod
I am getting the following error in my console. Whats the exact issue any one please suggest.
ionic-app-script task: "build"
[00:15:38] Error: ./node_modules/ionic-native/dist/es5/plugins/plugin.js Module build failed: TypeError: Cannot read
property 'type' of undefined at Object.getEffectiveTypeAnnotationNode
Following is my ionic information:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.6.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 2.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.0
Xcode version: Not installed

will ionic plugin 2.2.3 run on ionic 1.3.0?

I'm newbie in ionic and I need to create plugins that run on ionic 1.3.0, is that possible if I create the plugin using the ionic 2.2.3 ? will the plugin works or should I develop the plugin using ionic 1.3.0 also?