cordova-useragent
cordova-useragent copied to clipboard
Error: UserAgent plugin is not installed.
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.
Did u use it after deviceready ?
document.addEventListener('deviceready',function(event) {
UserAgent.set('new UA')
})
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.
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.
+1
+1
+1
+1
See here for how i solved it https://github.com/ionic-team/ionic-native/issues/2287