Skip to content

Commit

Permalink
Merge pull request #639 from Iterable/evan/MOB-7044-reset-embedded-ma…
Browse files Browse the repository at this point in the history
…nager-on-logout

[MOB-7044] reset embedded manager on logout
  • Loading branch information
evantk91 authored Oct 23, 2023
2 parents ad026d8 + ff31f39 commit 0205cdd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ private void logoutPreviousUser() {
}

getInAppManager().reset();
getEmbeddedManager().reset();
getAuthManager().clearRefreshTimer();

apiClient.onLogout();
Expand Down Expand Up @@ -616,9 +617,9 @@ public IterableInAppManager getInAppManager() {
}

@NonNull
public IterableEmbeddedManager embeddedManager() {
public IterableEmbeddedManager getEmbeddedManager() {
if (embeddedManager == null) {
throw new RuntimeException("IterableApi must be initialized before calling getFlexManager(). " +
throw new RuntimeException("IterableApi must be initialized before calling getEmbeddedManager(). " +
"Make sure you call IterableApi#initialize() in Application#onCreate");
}
return embeddedManager;
Expand Down

0 comments on commit 0205cdd

Please sign in to comment.