I'm working on a mobile app called Find.me that tracks user's locations and displays them on a map. I use Firebase to store their location data and use the Google Maps v3 API to create markers on a map corresponding to each user. When I test my code in the browser or using the Phonegap Developer App, everything works fine. But when I use Phonegap Build to create an Android .apk and install on my phone (Nexus 6, if that helps for anything,) run it, start the location process, and start pinching and zooming around the map, it crashes within a couple seconds. Does anyone know what's happening here? Maybe there is some conflicting code, or is this some sort of compatibility error between Phonegap and Google Maps API? Thanks in advance!
Code: https://github.com/shrey150/find.me/tree/testing ("testing" branch of the Git)
Do you get any messages logged to the device console (adb logcat)?
I haven't tried looking at the device console. How would I read the device console of a physical device? Or do I need to use an emulator?
See Android Debug Bridge | Android Developers. Once you have the Android developer tools installed, you can use "adb logcat" to display the console of a (properly configured) USB-attached Android device. It spews a lot of information, but look for output around the time of your app crash.
There are also apps on the Google Play store that claim to let you view the logs -- but I have not tried these, so I can't say if they would help or not.