Signal
The Signal extension allows marketers to send a "signal" to their apps through the Adobe Experience Platform Mobile SDKs. This signal might tell the Mobile SDKs or the apps to complete tasks, such as send PII-labeled data, to trigger a postback to a third-party ad-network and open an app deep link or URL. To ensure that signals are sent or are activated, the marketers need to configure triggers and traits in the Data Collection UI.
The Signal extension is bundled with the MobileCore (Android)/ACPCore (iOS) extension and allows you to send postbacks to third-party endpoints and open URLs, such as web URLs or application deep links, when using rules actions in the Data Collection UI.
To send PII data to external destinations, the PII action can trigger the Rules Engine when certain triggers and traits match. When setting a rule, you can also set the PII action for a Signal event. The collectPii API can then be used to trigger the rule and send the PII data to a remote server.
To get started with Signal extension, complete the following steps:
  1. 1.
    Add the Signal extension to your app.
  2. 2.
    Define the necessary rules in the Data Collection UI.
  3. 3.
    (Optional) When using Send PII actions in the Data Collection UI, implement the APIs to collect PII data and send it to the configured third party destination.
For more information about creating and configuring a rule in the Data Collection UI, see Rules.

Watch the Video

Add the Signal extension to your app

Android
iOS (AEP 3.x)
iOS (ACP 2.x)
React Native
Flutter
Cordova
Unity
Xamarin
Java
Add the Mobile Core extension to your project using the app's Gradle file.
1
implementation 'com.adobe.marketing.mobile:sdk-core:1.+'
Copied!
Import the Signal extension in your application's main activity.
1
import com.adobe.marketing.mobile.*;
Copied!
​Add the AEPSignal extension and it's dependency, the Mobile Core extension to your project using Cocoapods.
Add following pods in your Podfile:
1
pod 'AEPCore','~> 3.0'
2
pod 'AEPSignal','~> 3.0'
Copied!
Import the Signal libraries:
Swift
1
import AEPCore
2
import AEPSignal
Copied!
Objective-C
1
@import AEPCore;
2
@import AEPSignal;
Copied!
​The Signal extension is included in the Mobile Core extension. Add the Mobile Core extension to your project using Cocoapods.
Add following pods in your Podfile:
1
pod 'ACPCore', '~> 2.0'
Copied!
Import the Signal libraries:
Swift
In Swift, the ACPCore includes ACPSignal:
1
import ACPCore
Copied!
Objective-C
1
#import "ACPCore.h"
2
#import "ACPSignal.h"
Copied!
JavaScript
Importing the Signal extension:
1
import {ACPSignal} from '@adobe/react-native-acpcore';
Copied!
Dart
Importing the Signal extension:
1
import 'package:flutter_acpcore/flutter_acpsignal.dart';
Copied!

Cordova

After creating your Cordova app and adding the Android and iOS platforms, the Signal extension for Cordova can be added with this command:
1
cordova plugin add https://github.com/adobe/cordova-acpcore.git
Copied!

C#

After importing the ACPCore.unitypackage, the Signal extension for Unity can be added with following code in the MainScript
1
using com.adobe.marketing.mobile;
Copied!

C#

After adding the iOS ACPCore NuGet package or the Android ACPSignal NuGet package, the Signal extension can be added by this import statement
1
using Com.Adobe.Marketing.Mobile;
Copied!

Register the Signal extension

The registerExtension() API registers the Signal extension with the Mobile Core extension. This API allows the extension to send and receive events to and from the Mobile SDK.
To register the Identity extension, use the following code sample:
Android
iOS (AEP 3.x)
iOS (ACP 2.x)
React Native
Flutter
Cordova
Unity
Xamarin
Java
After calling the setApplication() method in the onCreate() method, register the Signal extension. If the registration was not successful, an InvalidInitException is thrown.
1
public class MobileApp extends Application {
2
3
@Override
4
public void onCreate() {
5
super.onCreate();
6
MobileCore.setApplication(this);
7
try {
8
Signal.registerExtension();
9
// register other extensions
10
MobileCore.start(new AdobeCallback () {
11
@Override
12
public void call(Object o) {
13
MobileCore.configureWithAppID("yourAppId");
14
}
15
});
16
} catch (Exception e) {
17
//Log the exception
18
}
19
}
20
}
Copied!
Important: The Signal extension is automatically included in the Mobile Core extension by Maven. When you manually install the Signal extension, ensure that you add the signal-1.x.x.aar library to your project.
In your app's application:didFinishLaunchingWithOptions, register the Signal extension with Mobile Core:
Swift
1
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
2
MobileCore.registerExtensions([Signal.self, ...]) {
3
MobileCore.configureWith(appId: "yourAppId")
4
// Any other post registration processing
5
}
6
return true;
7
}
Copied!
Objective-C
1
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
2
[AEPMobileCore registerExtensions:@[AEPMobileSignal.class, ...] completion:^{
3
[AEPMobileCore configureWithAppId: @"yourAppId"];
4
// Any other post registration processing
5
}];
6
return YES;
7
}
Copied!
In your app'sapplication:didFinishLaunchingWithOptions, register the Signal extension with Mobile Core:
Swift
1
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
2
ACPCore.configure(withAppId: "yourAppId")
3
ACPSignal.registerExtension()
4
ACPCore.start(nil)
5
// Override point for customization after application launch.
6
return true;
7
}
Copied!
Objective-C
1
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
2
[ACPCore configureWithAppId:@"yourAppId"];
3
[ACPSignal registerExtension];
4
[ACPCore start:nil];
5
// Override point for customization after application launch.
6
return YES;
7
}
Copied!
Important: The Signal extension is automatically included in the Mobile Core pod. When you manually install the Signal extension, ensure that you add the libACPSignal_iOS.a library to your project.
JavaScript
When using React Native, registering Signal with Mobile Core should be done in native code which is shown under the Android and iOS tabs.
Dart
When using Flutter, registering Signal with Mobile Core should be done in native code which is shown under the Android and iOS tabs.
Cordova
When using Cordova, registering Signal with Mobile Core must be done in native code which is shown under the Android and iOS tabs.
C#
Register the extension in the start() function:
1
void Start()
2
{
3
ACPSignal.RegisterExtension();
4
}
Copied!
C#
iOS
Register the Signal extension with the Mobile Core by adding the following to your app's FinishedLaunching: delegate method:
1
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
2
{
3
ACPSignal.RegisterExtension();
4
// start Mobile Core
5
ACPCore.Start(startCallback);
6
7
return base.FinishedLaunching(app, options);
8
}
9
10
private void startCallback()
11
{
12
// set app id from the Data Collection UI
13
ACPCore.ConfigureWithAppID("yourAppId");
14
}
Copied!
Android
Register the Signal extension with the Mobile Core by adding the following to your app's OnCreate: method:
1
protected override void OnCreate(Bundle savedInstanceState)
2
{
3
base.OnCreate(savedInstanceState);
4
LoadApplication(new App());
5
ACPCore.Application = this.Application;
6
ACPSignal.RegisterExtension();
7
// start Mobile Core
8
ACPCore.Start(new CoreStartCompletionCallback());
9
}
10
11
class CoreStartCompletionCallback : Java.Lang.Object, IAdobeCallback
12
{
13
public void Call(Java.Lang.Object callback)
14
{
15
// set app id from the Data Collection UI
16
ACPCore.ConfigureWithAppID("yourAppId");
17
}
18
}
Copied!

Implement the Mobile SDK to send PII data to external destinations

To send PII data to external destinations, the PII action can trigger the Rules Engine when the configured triggers and traits match. When creating a rule, you can set the PII action for a Signal event, so that collectPii can trigger the rule and send the PII data.
For more information about collectPii and its usage, see collectPii.
For more information about how to configure the Signal postbacks in the Data Collection UI, see Signal extension and Rules Engine integration.