To install the device plugin, in my config.xml
<gap:plugin name="cordova-plugin-device" source="npm" />
After a build, the device plugin shows up in the list.
However, device.platform is throwing a jquery error.
ReferenceError: Can't find variable: device
What am I missing?
Did you source cordova.js in your index.html file? If not, plugins won't be loaded, and you'd get an error like that. Also, you should wait until you've received deviceready before using plugins.
cordova.js is installed.
deviceready is in place.
ah, you know what it was ... something I said the other day I knew I'd needed to do, but then forgot with this update: uninstall and reinstall the app on my device.