Report component is responsible for all of the commands that are related to event logging and reporting.
Copilot SDK supports the main event logging providers, such as Firebase, Google Analytics, Facebook, Fabric etc. Also, you may use multiple providers in your mobile application.
Upon launching your application, call the
setup() method on Copilot in your
AppDelegate(iOS) or the
Application(Android) classes (as described in importing the SDK forAndroid and iOS sections) and provide objects that conform to the
When logging events using the Report component, it will address each report to every event logging provider Copilot was initialized with compiling the accepted analytics GDPR consent (if the application was setup to comply with GDPR - please refer to Copilot SDK configuration section and registering a user a user section).
💡 You can use the Reports component to log event only once and the reported event will be distributed to multiple event logging providers, according to the event and provider group setup.
let firebaseEventLogProvider = FirebaseAnalyticsProvider()
let consoleLogEventLogProvider = ConsoleLogEventProvider()
Copilot.setup(analyticsProviders: [firebaseProvider, consoleLogEventLogProvider])
List<EventLogProvider> providers = new ArrayList<EventLogProvider>();