updated initial attempts and integrating native features

unable to pull in the device object - I hav3e spent too much time on
this I keep getting undefined for all of the device properties - no way
for me to console.log either- HELP
I was able to pull in the connection object and display an alert