{% hint style="warning" %} Project Griffon is a beta product. To use it, you must accept the terms on https://experience.adobe.com/griffon. {% endhint %}
{% hint style="danger" %} Beta products are not supported by Adobe customer care or Adobe Experience Cloud community forums. Please use the Slack channel provided in your beta invite email to ask and resolve concerns. {% endhint %}
- Request access to Project Griffon by filling out the intake form
- Setup your app for Project Griffon
- Visit Project Griffon to start your first session
Please fill out this form to request access for Project Griffon.
{% hint style="info" %} Beta participation requires a valid, active Adobe Experience Cloud contract. Beta participation is subject to terms (as listed above). Project Griffon team do their best to respond on your participation request within 48-72 hours after form submission. {% endhint %}
You may access Project Griffon by visiting https://experience.adobe.com/griffon.
Follow these steps to add Project Griffon to your app:
- Follow instructions to implement the new Adobe Experience Platform Mobile SDK (skip if already done)
- Add the Project Griffon Extension to your app
- In Experience Platform Launch, click the Extensions tab.
- On the Catalog tab, locate the Project Griffon extension, and click Install.
- Follow the publishing process to update SDK configuration.
- Implement Project Griffon SDK APIs in your app
{% hint style="info" %} Use the latest versions of the Adobe Experience Platform Mobile SDK and Project Griffon SDK extension to try out our newest functionality. {% endhint %}
{% tabs %} {% tab title="Android" %} Java
-
Add the following libraries in your project's
build.gradle
file:implementation 'com.adobe.marketing.mobile:core:1+' implementation 'com.adobe.marketing.mobile:griffon:1+'
-
Import the Project Griffon libraries with the other SDK libraries:
import com.adobe.marketing.mobile.Griffon; import com.adobe.marketing.mobile.MobileCore;
{% endtab %}
{% tab title="iOS" %}
Add the library to your project via your Cocoapods Podfile
pod 'ACPCore'
pod 'ACPGriffon'
Import the Project Griffon libraries along with other SDK libraries:
#import "ACPCore.h"
#import "ACPGriffon.h" // <-- import the Project Griffon library
import ACPCore
import ACPGriffon // <-- import the Project Griffon library
{% endtab %}
{% tab title="Flutter" %}
Flutter install instructions for Griffon can be found here. {% endtab %}
{% tab title="Cordova" %}
After creating your Cordova app and adding the Android and iOS platforms, the Project Griffon extension for Cordova can be added with this command:
cordova plugin add https://github.com/adobe/cordova-acpgriffon.git
{% endtab %}
{% tab title="Unity" %}
After importing the ACPGriffon.unitypackage, the Griffon extension for Unity can be added with following code in the MainScript
using com.adobe.marketing.mobile;
{% endtab %}
{% tab title="Xamarin" %}
-
After adding the iOS or Android ACPGriffon NuGet package, the Griffon extension can be added by this import statement
using Com.Adobe.Marketing.Mobile;
-
Get the extension version.
ACPGriffon.ExtensionVersion();
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="Android" %} Registering the extension with Core, sends Experience Platform SDK events to an active Project Griffon session. To start using the extension library, you must first register the extension with the Mobile Core extension.
-
Register the extension when you register other extensions.
public class MobileApp extends Application { @Override public void onCreate() { super.onCreate(); MobileCore.setApplication(this); MobileCore.configureWithAppId("yourAppId"); try { Griffon.registerExtension(); MobileCore.start(null); } catch (Exception e) { // Log the exception } } }
{% endtab %}
{% tab title="iOS" %} Registering the extension with Core sends Experience Platform SDK events to an active Project Griffon session. To start using the extension library, you must first register the extension with the Mobile Core extension.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[ACPCore configureWithAppId:@"yourAppId"];
[ACPGriffon registerExtension]; // <-- register Project Griffon with Core
[ACPCore start:nil];
// Override point for customization after application launch.
return YES;
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
ACPCore.configure(withAppId: "yourAppId")
ACPGriffon.registerExtension() // <-- register Project Griffon with Core
ACPCore.start(nil)
// Override point for customization after application launch.
return true;
}
{% endtab %}
{% tab title="Flutter" %} When using Flutter, registering Griffon with Mobile Core should be done in native code which is shown under the Android and iOS tabs. {% endtab %}
{% tab title="Cordova" %} When using Cordova, registering Griffon with Mobile Core must be done in native code which is shown under the Android and iOS tabs. {% endtab %}
{% tab title="Unity" %}
using com.adobe.marketing.mobile;
using AOT;
public class MainScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
ACPGriffon.RegisterExtension();
}
}
{% endtab %}
{% tab title="Xamarin" %}
iOS
Register the Griffon extension in your app's FinishedLaunching()
function:
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
ACPGriffon.RegisterExtension();
// start core
ACPCore.Start(startCallback);
return base.FinishedLaunching(app, options);
}
private void startCallback()
{
// set launch config
ACPCore.ConfigureWithAppID("yourAppId");
}
Android
Set the current activity with ACPCore via the ACPCoreBridge and register the Griffon extension in your app's OnCreate()
function:
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
// Set the activity in core using the bridge
ACPCoreBridge.SetCurrentActivity((Activity)Forms.Context);
ACPGriffon.RegisterExtension();
// start core
ACPCore.Start(new CoreStartCompletionCallback());
}
class CoreStartCompletionCallback : Java.Lang.Object, IAdobeCallback
{
public void Call(Java.Lang.Object callback)
{
// set launch config
ACPCore.ConfigureWithAppID("yourAppId");
}
}
{% endtab %} {% endtabs %}
The startSession
API needs to be called to begin a Project Griffon session. When called, SDK displays a PIN authentication overlay to begin a session.
With the latest Project Griffon SDK extensions, Android does not require this API to be called. When the registerExtension
API is called, Project Griffon registers the app lifecycle handlers which automatically pick up any deep links and use them to start the session.
{% hint style="info" %} You may call this API when the app launches with a url (see code snippet below for sample usage) {% endhint %}
{% tabs %} {% tab title="iOS" %}
+ (void) startSession: (NSURL* _Nonnull) url;
- (BOOL)application:(UIApplication *)app openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
[ACPGriffon startSession:url];
return false;
}
In iOS 13 and later, for a scene-based application, use the UISceneDelegate
's scene(_:openURLContexts:)
method as follows:
- (void) scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
UIOpenURLContext * urlContext = URLContexts.anyObject;
if (urlContext != nil) {
[ACPGriffon startSession:urlContext.URL];
}
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
do {
ACPGriffon.startSession(url)
return false
}
}
In iOS 13 and later, for a scene-based application, use the UISceneDelegate
's scene(_:openURLContexts:)
method as follows:
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
ACPGriffon.startSession((URLContexts.first!).url)
}
{% endtab %}
{% tab title="Cordova" %}
ACPGriffon.startSession(url, success, error);
ACPGriffon.startSession(sessionUrl, function(handleCallback) {
console.log("AdobeExperenceSDK: Griffon session start successful: " + handleCallback);
}, function(handleError) {
console.log("AdobeExperenceSDK: Failed to start griffon session: " + handleError);
});
{% endtab %}
{% tab title="Unity" %}
public static void StartSession(string url)
ACPGriffon.StartSession("griffonexample//?adb_validation_sessionid=f35ed0d7-e235-46a6-a327-7346f6de3a0");
{% endtab %}
{% tab title="Xamarin" %}
public static void StartSession (NSUrl url);
public unsafe static void StartSession (string url);
NSUrl url = new NSUrl("session url");
ACPGriffon.StartSession(url);
ACPGriffon.StartSession("session url");
{% endtab %} {% endtabs %}