Show Menu
TOPICS×

PhoneGap plug-in

This plug-in lets you send iOS AppMeasurement calls from your PhoneGap project.

New Adobe Experience Platform Mobile SDK Release

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 .

Create a PhoneGap project

To create a PhoneGap project, see PhoneGap .

Install the plug-in using npm:

  1. Run the following command:
    cordova plugin add adobe-mobile-services
    
    

Manually install the plug-in

Include the AppMeasurement library

To include the AppMeasurement:
  1. Drag ADBMobile_PhoneGap.h and ADBMobile_PhoneGap.m into the Plugins folder in your Xcode project.
  2. Complete the following settings:
    1. Select Copy items into destination group's folder (if needed) .
    2. Select the targets where you want to use AppMeasurement code.
  3. Drag ADB_Helper.js into the www folder in your project.
  4. In the res/xml folder, open config.xml and register an new plugin by adding the following:
    <feature name="ADBMobile_PhoneGap"> 
      <param name="ios-package" value="ADBMobile_PhoneGap" /> 
    </feature>
    
    

Add app permissions

The AppMeasurement library requires the following:
  1. Launch the Xcode IDE and open your app.
  2. Drag the AdobeMobile folder into your Xcode project and complete the following settings:
    1. Select Copy items into destination group's folder (if needed) .
    2. Select Create groups for any added folders .
    3. Select the targets where you want to use AppMeasurement code and click Finish .
  3. 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
  4. Confirm that your app builds without unexpected errors.

Implement custom tracking

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>