This plug-in lets you send iOS AppMeasurement calls from your PhoneGap project.
Looking for information and documentation related to the Adobe Experience Platform Mobile SDK? Click here for our latest documentation.
As of September 2018, we released a new, major version of the SDK. These new Adobe Experience Platform Mobile SDKs are configurable through Experience Platform Launch.
- To get started, go to Adobe Experience Platform Launch.
- To see what is in the Experience Platform SDK repositories, go to Github: Adobe Experience Platform SDKs.
To create a PhoneGap project, see PhoneGap.
-
Run the following command:
cordova plugin add adobe-mobile-services
To include the AppMeasurement:
-
Drag
ADBMobile_PhoneGap.h
andADBMobile_PhoneGap.m
into the Plugins folder in your Xcode project. -
Complete the following settings:
- Select Copy items into destination group's folder (if needed).
- Select the targets where you want to use AppMeasurement code.
-
Drag
ADB_Helper.js
into thewww
folder in your project. -
In the
res/xml
folder, openconfig.xml
and register an new plugin by adding the following:<feature name="ADBMobile_PhoneGap"> <param name="ios-package" value="ADBMobile_PhoneGap" /> </feature>
The AppMeasurement library requires the following:
-
Launch the Xcode IDE and open your app.
-
Drag the AdobeMobile folder into your Xcode project and complete the following settings:
- Select Copy items into destination group's folder (if needed).
- Select Create groups for any added folders.
- Select the targets where you want to use AppMeasurement code and click Finish.
-
In the Build Phases tab of your project’s target, expand the Link Binary with Libraries section and add the following libraries:
libsqlite3.dylib
SystemConfiguration.framework
-
Confirm that your app builds without unexpected errors.
In html
files where you want to use tracking, add the following to the <head>
tag:
<script type="text/javascript" charset="utf-8" src="ADB_Helper.js"></script>