From 2feaf1f05e25355abaa5afdaee36d512870a08fd Mon Sep 17 00:00:00 2001 From: yansong Date: Tue, 13 Dec 2022 21:23:15 -0700 Subject: [PATCH] The first Identity shared state should include a valid mid --- .../adobe/marketing/mobile/identity/IdentityExtension.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java b/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java index a19d50706..a67caa4db 100644 --- a/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java +++ b/code/android-identity-library/src/main/java/com/adobe/marketing/mobile/identity/IdentityExtension.java @@ -275,7 +275,9 @@ void forceSyncIdentifiers(@NonNull final Event event) { private void boot() { loadVariablesFromPersistentData(); initializeDatabaseWithCurrentPrivacyStatus(); - getApi().createSharedState(packageEventData(), null); + if(!StringUtils.isNullOrEmpty(mid)){ + getApi().createSharedState(packageEventData(), null); + } } /**