Skip to content

Commit

Permalink
fix: SyncListener method profileDidInitialize was not being called CL…
Browse files Browse the repository at this point in the history
…EVER-8971
  • Loading branch information
darshanclevertap committed Mar 11, 2020
1 parent 5901be0 commit 46b456b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Binary file modified AndroidStarter/app/libs/clevertap-android-sdk-3.7.0.aar
Binary file not shown.
Binary file modified clevertap-android-sdk-3.7.0.aar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,16 @@ public static CleverTapAPI instanceWithConfig(Context context, @NonNull CleverTa
if (instance == null) {
instance = new CleverTapAPI(context, config, cleverTapID);
instances.put(config.getAccountId(), instance);
if (instance.getCleverTapID() != null) {
instance.notifyUserProfileInitialized();
instance.recordDeviceIDErrors();
}
final CleverTapAPI finalInstance = instance;
new Handler().post(new Runnable() {
@Override
public void run() {
if (finalInstance.getCleverTapID() != null) {
finalInstance.notifyUserProfileInitialized();
finalInstance.recordDeviceIDErrors();
}
}
});
} else if (instance.isErrorDeviceId() && instance.getConfig().getEnableCustomCleverTapId() && Utils.validateCTID(cleverTapID)) {
instance.asyncProfileSwitchUser(null, null, cleverTapID);
}
Expand Down

0 comments on commit 46b456b

Please sign in to comment.