Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Adobe Analytics- GetSharedState error

Avatar

Level 1

while running the sample app provided by https://github.com/adobe/flutter_acpanalytics, nothing happens when sending trackState/trackAction

Steps followed:

1. Checkout the example project

2.cd example/ios

3. pod install

4. flutter run

 

App starts fine but when clicking any of the buttons to track state/action, seeing this messsage

 

[AdobeExperienceSDK DEBUG <com.adobe.module.analytics>]: GetSharedState - Shared State for com.adobe.module.identity couldn't be retrieved at the time, will retry later. If this message persists, please make sure you have registered and configured the com.adobe.module.identity extension properly based on the documentation.

when debugging with Proxyman, cannot see any requests going out

1 Accepted Solution

Avatar

Correct answer by
Level 5

First, verify your application bundle version and java versions are matched with flutter_acpanalytics integrations.

 

This version dependence also creates some issues, resolve the issues first

then ensure your application is imported packaged and added the dependency in the application bundle.

 

import 'package:flutter_acpanalytics/flutter_acpanalytics.dart';

Follow the implementation guide and reference examples:
https://pub.dev/packages/flutter_acpanalytics/install
https://pub.dev/packages/flutter_acpanalytics/example
 

We have developed based on instructions with native apps and working fine, some time when we tried it with updated bundle, java version issue create the issues.

 

Sample:
import com.adobe.marketing.mobile.Identity;

 protected void onCreate(Bundle savedInstanceState) {
try{
Identity.registerExtension();
MobileCore.start(new AdobeCallback () {
@Override
public void call(Object o) {
MobileCore.configureWithAppID("Adobe Property Id");
}
} catch (InvalidInitException e) {
e.printStackTrace();
} 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

First, verify your application bundle version and java versions are matched with flutter_acpanalytics integrations.

 

This version dependence also creates some issues, resolve the issues first

then ensure your application is imported packaged and added the dependency in the application bundle.

 

import 'package:flutter_acpanalytics/flutter_acpanalytics.dart';

Follow the implementation guide and reference examples:
https://pub.dev/packages/flutter_acpanalytics/install
https://pub.dev/packages/flutter_acpanalytics/example
 

We have developed based on instructions with native apps and working fine, some time when we tried it with updated bundle, java version issue create the issues.

 

Sample:
import com.adobe.marketing.mobile.Identity;

 protected void onCreate(Bundle savedInstanceState) {
try{
Identity.registerExtension();
MobileCore.start(new AdobeCallback () {
@Override
public void call(Object o) {
MobileCore.configureWithAppID("Adobe Property Id");
}
} catch (InvalidInitException e) {
e.printStackTrace();
}