cordova-useragent icon indicating copy to clipboard operation
cordova-useragent copied to clipboard

Error: UserAgent plugin is not installed.

Open DedSec49 opened this issue 7 years ago • 8 comments

I keep on getting this error that the plugin is not installed in my android 7 phone. even when I have installed this plugin

Native: tried calling UserAgent.set, but the UserAgent plugin is not installed. Install the UserAgent plugin: 'ionic cordova plugin add cordova-plugin-useragent'

I used the same command to install this user agent and the successfuly executed with no errors and allso added the entry in config.xml. I also ran the npm command after this.

Please help me out.

DedSec49 avatar Jul 13 '17 10:07 DedSec49

Did u use it after deviceready ?

document.addEventListener('deviceready',function(event) {
    	UserAgent.set('new UA')
})

KamilPius avatar Jul 13 '17 12:07 KamilPius

Same problem here (and yes, deviceready has been fired before call). Any progress with this issue?

A hint or better a solution would be very much appreciated.

Kai-vE avatar Nov 02 '17 15:11 Kai-vE

Having the same issue here. At first I had a unmet dependency warning during module installation in CLI saying i need @ionic-native/core 4.2.0, so I upgraded core to 4.2.0. But still does not work.

Then I try manually inserting "cordova-useragent" and "im.ltdev.cordova.UserAgent" in package.json but still does not work. I am clueless now. Please help.

aaronneon2 avatar Nov 06 '17 04:11 aaronneon2

+1

jd048 avatar Mar 18 '18 03:03 jd048

+1

ssonix avatar May 17 '18 23:05 ssonix

+1

codewise-nicolas avatar May 24 '18 20:05 codewise-nicolas

+1

marrakchim avatar May 25 '18 09:05 marrakchim

See here for how i solved it https://github.com/ionic-team/ionic-native/issues/2287

codewise-nicolas avatar Jun 01 '18 23:06 codewise-nicolas