This plug-in lets you send iOS AppMeasurement calls from your
For help creating a PhoneGap project, see
PhoneGap Getting Started with iOS.
To download the plug-in, see
PhoneGap iOS and Android Plug-ins for
Include the Plug-in
ADMS_Measurement_PhoneGap.h to the
Plugins folder in your PhoneGap project.
ADMS_Helper.js to the
www/js folder in your PhoneGap project.
- In config.xml, add
value="ADMS_Measurement_PhoneGap" />" as a child under
Include the AppMeasurement Library
To download the AppMeasurement library, see
Get the Library.
- Launch the Xcode IDE.
- Copy the
ADMS_AppLibrary folder from the
ADMS_AppLibrary-*.DMG you downloaded to your project
folder or another location on your drive.
- Drag and Drop the
ADMS_Measurement folder on your Xcode project, and
confirm the following settings:
Copy items into destination group's folder (if
Create groups for any added folders.
- Select the targets
where you want to use AppMeasurement code.
Lifecycle Metrics Auto Tracking
requires configuration outside of PhoneGap. To enable Lifecycle Auto Tracking,
Implementation steps in
the Developer Quick Start.
Use the Plug-in
files where you want to use tracking, include:
That's it, you are now ready to make measurement calls. See
PhoneGap Plug-in Methods.
My syntax is correct, why is the code in the plugin not getting
Check your output console for an error that is similar to:
ERROR: Plugin 'ADMS_Plugin' not found, or is not a
if this error occurs, make sure you performed step 3 in Include the