I’m using cordova-plugin-device 2.0.1 “Device” plugin to get unique id of device.
but having problem using it in iOS
xcode log said below.
2018-03-11 21:00:43.036326+0900 ionic_ruliweb[3683:2260203] CDVPlugin class CDVDevice (pluginName: Device) does not exist.
2018-03-11 21:00:43.036407+0900 ionic_ruliweb[3683:2260203] ERROR: Plugin ‘Device’ not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2018-03-11 21:00:43.036463+0900 ionic_ruliweb[3683:2260203] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = [“Device282422682”,“Device”,“getDeviceInfo”,[]]
why is it?
ionic info is below
li packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 6.4.0 ios 4.4.0
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.9.2
Node : v8.4.0
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : legacy