Error: undefined is not an object (evaluating 'cordova.plugins.diagnostic.requestLocationAuthorization')
checkLocationSettings@file:///var/containers/Bundle/Application/17-714B2421w-12AD-A13E-17245G12B039/MyApp.app/www/js/app.js:264:35
I checked the installed plugins and I can see that I have this installed: cordova.plugins.diagnostic 3.6.5 "Diagnostic" when I do cordova plugin ls
An in my config.xml file, I have this:
<plugin name="cordova.plugins.diagnostic" spec="~3.6.5"/>
So I'd expect it would work, but it doesn't. I am trying to get it to work for the iPhone 7 (physical device, not the simulator).