Implementing Adobe Analytics for an Ionic Capacitor Hybrid App
Hello,
My team is working on discovering how we can implement Adobe Analytics into our hybrid Ionic-Angular with Capacitor application.
Ionic Capacitor version 6.18.1.
Angular version 13.0.4
We started to explore using the Mobile SDK (through the Experience Platform SDK) following the steps for Cordova. However, our main issue arrives when the time comes to add the initialization code (see step 2 here).
While we do have an AppDelegate.swift file for the created iOS platform, we do not have a MainApplication.java file for the Android platform. So, we cannot add the required initialization code for Android.
We do, however, have a MainActivity file beneath this file structure android\app\src\main\java\io\ionic\starter\MainActivity.java.
No source code is written specifically to these platform files for this application.
Is there a way to add initialization code to the Android platform that is provided by Ionic? If not, is it better that we go down the route of using the 2.0 APIs to track events? Or possibly go down the route of using the JavaScript implementation with AppMeasurement.js?
Any advice or expertise would be greatly appreciated!
Thank you,
Corrinne
