Open SVANNER opened 5 years ago
Same here on Ionic 3
Same problem on Ionic 4.
Someone is answering me on the forum. (no solution yet).
https://forum.ionicframework.com/t/extended-device-information/183631/3
What was the solution to this? I am having a similar issue on my Ionic v1 app using the cordova-plugin-deviceinformation
- which also shows extended information. My plugin is there as well, not certain whats happening.
Late reply but leaving this here for anyone looking for a workaround. You can call the Cordova plugin directly like this:
declare var cordova: any;
@Injectable()
export class YourClass {
totalStorage = cordova.plugins['extended-device-information'].totalstorage;
}
@shyamPindoria Thank you so much
Late reply but leaving this here for anyone looking for a workaround. You can call the Cordova plugin directly like this:
declare var cordova: any; @Injectable() export class YourClass { totalStorage = cordova.plugins['extended-device-information'].totalstorage; }
Thank you so much. This is work for me
Hi, I get the following error trying to access any of the function of the plugin:
Native: tried calling ExtendedDeviceInformation.memory, but the ExtendedDeviceInformation plugin is not installed.
The plugin is present when running ionic cordova plugin list:
cordova-plugin-extended-device-information 2.2.0 "ExtendedDeviceInformation" I have the following in my app.module.ts:
import { ExtendedDeviceInformation } from '@ionic-native/extended-device-information/ngx'; providers: [ ... ExtendedDeviceInformation,
I am testing on a Galaxy S8+ with Android 9 (Pie)
Here is my Ionic Info:
Ionic:
Ionic CLI : 5.2.3 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.4.2 @angular-devkit/build-angular : 0.13.9 @angular-devkit/schematics : 7.3.9 @angular/cli : 7.3.9 @ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : not available Cordova Plugins : not available
Utility:
cordova-res : not installed native-run : 0.2.6 (update available: 0.2.8)
System:
Android SDK Tools : 26.1.1 (/home/stephane/Android/Sdk) NodeJS : v10.15.2 (/usr/bin/node) npm : 6.10.2 OS : Linux 5.0 Thanks a lot !