Adobe Mobile Services Cordova Plugin
Getting Started:
Create and add plugin
- Create a cordova plugin ex. cordova create sampleApp com.sample.test HelloWorld
- Navigate to the root of the recently created project ex. cd sampleApp/
- Add Platforms ex. cordova platform add android
- Add MobileServices plugin ex. cordova plugin add adobe-mobile-services
Configuration
-
Place the ADBMobileConfig.json file downloaded from Adobe Mobile Services in the
wwwdirectory -
Setup is complete. The Adobe library is now accessible within the index.html file via "window.ADB"
<button style="height:200px; width:600px" onclick = "window.ADB.trackState('login page', {'user':'john','remember':'true'});">sampleHit</button>