cordova-plugin-android-permissions
cordova-plugin-android-permissions copied to clipboard
Object is not function
When i am trying to add this code it gives Object(...) is not function i am suing ionic 3 angular 5 setup
Same problem here.
Same problem here...
Same problem here...
Getting Same problem here...
Same problem here:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.2, ios 4.5.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 15 other plugins)
System:
Android SDK Tools : 26.1.1 (/Users/juanramos/Library/Android/sdk)
ios-deploy : 1.9.2
ios-sim : 6.1.2
NodeJS : v9.9.0 (/usr/local/bin/node)
npm : 5.7.1
OS : macOS Mojave
Xcode : Xcode 10.2 Build version 10E125
"@ionic-native/android-permissions": "^5.4.0",
...
"cordova-plugin-android-permissions": "1.0.0",
Solved, Updating ionic native core to the same version of the installed wrapper or downgrading the version of the wrapper.
Adding ngx to the import solved my problem
import { AndroidPermissions } from '@ionic-native/android-permissions/ngx';