
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
cordova-acpcore-fork
Advanced tools
Adobe Experience Platform - Core plugin for Cordova apps.(fork from https://github.com/adobe/cordova-acpcore)
Cordova is distributed via npm
(Node Package Management).
In order to install and build Cordova applications you will need to have Node.js
installed. Install Node.js.
Once Node.js is installed, you can install the Cordova framework from terminal:
sudo npm install -g cordova
To start using the AEP SDK for Cordova, navigate to the directory of your Cordova app and install the plugin:
cordova plugin add cordova-acpcore-fork
Check out the documentation for help with APIs
iOS:
// Import the SDK
#import "ACPCore.h"
#import "ACPLifecycle.h"
#import "ACPIdentity.h"
#import "ACPSignal.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// make sure to set the wrapper type at the beginning of initialization
[ACPCore setWrapperType:ACPMobileWrapperTypeCordova];
//...
[ACPCore configureWithAppId:@"yourAppId"];
[ACPIdentity registerExtension];
[ACPLifecycle registerExtension];
[ACPSignal registerExtension];
// Register any additional extensions
[ACPCore start:nil];
}
Android:
// Import the SDK
import com.adobe.marketing.mobile.MobileCore;
import com.adobe.marketing.mobile.Identity;
import com.adobe.marketing.mobile.Lifecycle;
import com.adobe.marketing.mobile.Signal;
import com.adobe.marketing.mobile.WrapperType;
@Override
public void onCreate() {
//...
MobileCore.setApplication(this);
MobileCore.configureWithAppID("yourAppId");
// make sure to set the wrapper type at the beginning of initialization
MobileCore.setWrapperType(WrapperType.CORDOVA);
try {
Identity.registerExtension();
Lifecycle.registerExtension();
Signal.registerExtension();
// Register any additional extensions
} catch (Exception e) {
// handle exception
}
MobileCore.start(null);
}
ACPCore.extensionVersion(function(version) {
console.log(version);
}, function(error) {
console.log(error);
});
ACPCore.updateConfiguration({"newConfigKey":"newConfigValue"}, successCallback, errorCallback);
ACPCore.setLogLevel(ACPCore.ACPMobileLogLevelError, successCallback, errorCallback);
ACPCore.setLogLevel(ACPCore.ACPMobileLogLevelWarning, successCallback, errorCallback);
ACPCore.setLogLevel(ACPCore.ACPMobileLogLevelDebug, successCallback, errorCallback);
ACPCore.setLogLevel(ACPCore.ACPMobileLogLevelVerbose, successCallback, errorCallback);
ACPCore.getPrivacyStatus(function(privacyStatus) {
console.log(privacyStatus);
}, function(error) {
console.log(error);
});
ACPCore.setPrivacyStatus(ACPCore.ACPMobilePrivacyStatusOptIn, successCallback, errorCallback);
ACPCore.setPrivacyStatus(ACPCore.ACPMobilePrivacyStatusOptOut, successCallback, errorCallback);
ACPCore.setPrivacyStatus(ACPCore.ACPMobilePrivacyStatusUnknown, successCallback, errorCallback);
ACPCore.getSdkIdentities(function(sdkIdentities) {
console.log(sdkIdentities);
}, function(error) {
console.log(error);
});
var e = ACPCore.createEvent("eventName", "eventType", "eventSource", {"key":"value"});
ACPCore.dispatchEvent(e, successCallback, errorCallback);
var e = ACPCore.createEvent("eventName", "eventType", "eventSource", {"key":"value"});
ACPCore.dispatchEventWithResponseCallback(e, successCallback, errorCallback);
var e1 = ACPCore.createEvent("eventName", "eventType", "eventSource", {"key":"value"});
var e2 = ACPCore.createEvent("eventName2", "eventType", "eventSource", {"key":"value"});
ACPCore.dispatchResponseEvent(e1, e2, successCallback, errorCallback);
ACPCore.downloadRules(successCallback, errorCallback);
ACPCore.setAdvertisingIdentifier("someAdid", successCallback, errorCallback);
ACPCore.trackAction("cordovaAction", {"cordovaKey":"cordovaValue"}, successCallback, errorCallback);
ACPCore.trackState("cordovaState", {"cordovaKey":"cordovaValue"}, successCallback, errorCallback);
ACPIdentity.extensionVersion(function(version) {
console.log(version);
}, function(error) {
console.log(error);
});
ACPIdentity.syncIdentifier("id1", "value1", ACPIdentity.ACPMobileVisitorAuthenticationStateUnknown, successCallback, errorCallback);
ACPIdentity.syncIdentifiers({"id2":"value2", "id3":"value3", "id4":"value4"}, successCallback, errorCallback);
ACPIdentity.syncIdentifiers({"id2":"value2", "id3":"value3", "id4":"value4"}, ACPIdentity.ACPMobileVisitorAuthenticationStateLoggedOut, successCallback, errorCallback);
ACPIdentity.syncIdentifiers({"id2":"value2", "id3":"value3", "id4":"value4"}, ACPIdentity.ACPMobileVisitorAuthenticationStateAuthenticated, successCallback, errorCallback);
ACPIdentity.syncIdentifiers({"id2":"value2", "id3":"value3", "id4":"value4"}, ACPIdentity.ACPMobileVisitorAuthenticationStateUnknown, successCallback, errorCallback);
ACPIdentity.appendVisitorInfoForUrl("https://www.adobe.com", successCallback, errorCallback);
ACPIdentity.getUrlVariables(function(variables) {
console.log(variables);
}, function(error) {
console.log(error);
});
ACPIdentity.getIdentifiers(function(ids) {
console.log(ids);
}, function(error) {
console.log(error);
});
ACPIdentity.getExperienceCloudId(function(cloudId) {
console.log(cloudId);
}, function(error) {
console.log(error);
});
Note: We recommend implementing Lifecycle in native Android and iOS code.
ACPLifecycle.extensionVersion(function(version) {
console.log(version);
}, function(error) {
console.log(error);
});
ACPSignal.extensionVersion(function(version) {
console.log(version);
}, function(error) {
console.log(error);
});
Install cordova-paramedic https://github.com/apache/cordova-paramedic
npm install -g cordova-paramedic
Run the tests
cordova-paramedic --platform ios --plugin . --verbose
cordova-paramedic --platform android --plugin . --verbose
A Cordova app for testing the Adobe SDK plugins is located at https://github.com/adobe/cordova-acpsample. The app is configured for both iOS and Android platforms.
Below is a list of additional Cordova plugins from the AEP SDK suite:
Extension | GitHub | npm |
---|---|---|
Adobe Analytics | https://github.com/adobe/cordova-acpanalytics | |
Places | https://github.com/adobe/cordova-acpplaces | |
Project Griffon (Beta) | https://github.com/adobe/cordova-acpgriffon |
Looking to contribute to this project? Please review our Contributing guidelines prior to opening a pull request.
We look forward to working with you!
This project is licensed under the Apache V2 License. See LICENSE for more information.
FAQs
Adobe Experience Platform - Core plugin for Cordova apps.(fork from https://github.com/adobe/cordova-acpcore)
We found that cordova-acpcore-fork demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.