-
Notifications
You must be signed in to change notification settings - Fork 617
Fix FIAM ANR Issue 1430 #1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix FIAM ANR Issue 1430 #1488
Conversation
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with |
Binary Size ReportAffected SDKs
Test Logs |
...base-inappmessaging/src/main/java/com/google/firebase/inappmessaging/internal/ApiClient.java
Show resolved
Hide resolved
...ase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/internal/GrpcClient.java
Show resolved
Hide resolved
...ing/src/main/java/com/google/firebase/inappmessaging/internal/InAppMessageStreamManager.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
// blocking get occurs on the IO thread because that's what we observeOn above | ||
return Maybe.fromCallable(getIID::blockingGet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to just return getIID here, which is already a Maybe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah but I need to do blocking get which turns it into a not maybe, if I don't do blocking get here the waiting ends up hitting the main thread below
...ing/src/main/java/com/google/firebase/inappmessaging/internal/InAppMessageStreamManager.java
Show resolved
Hide resolved
if (!dataCollectionHelper.isAutomaticDataCollectionEnabled()) { | ||
Logging.logi( | ||
"Automatic data collection is disabled, not attempting campaign fetch from service."); | ||
return Maybe.just(cacheExpiringResponse()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking out loud: Can this be modelled as an empty as well, similar to IID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm maybe but I think this is pretty clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like it could map to empty or something like that but I think it's not worth it
No description provided.