I am an app developer. I would like to initialize Flurry analytics SDK after taking consent from the user (instead of app launch).
Consent is taken in a fragment. I am using the code below in the same fragment- new FlurryAgent.Builder() .withDataSaleOptOut(false) //CCPA - the default value is false .withCaptureUncaughtExceptions(true) .withIncludeBackgroundSessionsInMetrics(true) .withLogLevel(Log.VERBOSE) .withPerformanceMetrics(FlurryPerformance.ALL) .build(getActivity(), {FLURRY_API_KEY}); However, events are not getting logged. They only start getting logged when a new activity comes up to foreground.
Can you please help me with this?
Thanking you in advance.