Hi, everyone!
I am facing some weird issues after updating to latest intercom version, but it also happened after last update.
Last year, in november, I upgraded to 'io.intercom.android:intercom-sdk:12.5.0' and after that, we got some massive crashing in production which is still present since I was trying to fix navigation until today when something else happened and I got suspicion it is related to intercom upgrade. So, here is out massive crash (6k events in last 90 days) submitted to google: https://issuetracker.google.com/issues/295991505
Today, I have tried upgrading to 'io.intercom.android:intercom-sdk:15.2.0' and another equally weird thing happened, but now it was underwritten by red, related to `BottomSheetDialog` (?!). We had this part of code for like 4 years and it was working just fine until I have changed intercom version:
binding.bottomSheetFFFFFF.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
int peekHeight = binding.appCompatTextViewFFFFF.getBottom();
bottomSheetBehavior.setPeekHeight(peekHeight, true);
setVerticalPadding(0, peekHeight);
binding.bottomSheetInDrive.getViewTreeObserver().removeOnGlobalLayoutListener(this);
bottomSheetBehavior.setState(bottomSheetBehavior.getState()); // <-- red warning here
}
});
I said red warning since I have build it successfully and it was working until some case when it was crashing and I could not get in app. Fix was to change the problematic line with:
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
And it is not a problem anymore, but FIRST PROBLEM from above did not have any warning and it cannot be solved easily and it is definitely caused by changing intercom version - I guess the library does not get along with navigation and obviously bottomsheetdialog and what else?
We cannot afford having something unstable in app, but we need it. Any similar experiences? Any hope it will get better?