cordova-plugin-android-permissions icon indicating copy to clipboard operation
cordova-plugin-android-permissions copied to clipboard

Object is not function

Open samktest opened this issue 6 years ago • 7 comments

When i am trying to add this code it gives Object(...) is not function i am suing ionic 3 angular 5 setup

samktest avatar Jan 27 '19 13:01 samktest

Same problem here.

ShadTK avatar Feb 05 '19 19:02 ShadTK

Same problem here...

vty006 avatar Feb 06 '19 21:02 vty006

Same problem here...

itlpps avatar Feb 12 '19 18:02 itlpps

Getting Same problem here...

sgottapu avatar Mar 27 '19 11:03 sgottapu

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",

Hanzofm avatar Apr 09 '19 15:04 Hanzofm

Solved, Updating ionic native core to the same version of the installed wrapper or downgrading the version of the wrapper.

Hanzofm avatar Apr 10 '19 07:04 Hanzofm

Adding ngx to the import solved my problem

import { AndroidPermissions } from '@ionic-native/android-permissions/ngx';

martin-1415 avatar Jun 15 '20 14:06 martin-1415