Detects if the PhoneGap API is present.
From the team behind Apache Cordova, the Adobe PhoneGap framework is an open source distribution of Cordova — providing the advantage of technology created by a diverse team of pros along with a robust developer community — plus access to the PhoneGap toolset, so you can get to mobile faster. ~ https://phonegap.com/
If the PhoneGap API is present, the BeEF hook is executing within an app, and can make use of various PhoneGap API calls. Several PhoneGap API command modules are available to make use of the API.