You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
I set wootric on the main activity. When we call wootric.survey(), and then put the app in the background or start a new activity, survey cannot be displayed when returning to main activity after waiting for the data request, and an error will be displayed on the console: WOOTRIC_SDK: showSurvey: Can not perform this action after onSaveInstanceState()
Expected Behavior
When returning to main activity, survey can be displayed.
Wootric Version
2.18.0
Root Cause
When the activity starts in the background, onSaveInstanceState (Bundle outState) will be called, and then FragmentTransaction.commit () will throw this exception
Summary
I set wootric on the main activity. When we call wootric.survey(), and then put the app in the background or start a new activity, survey cannot be displayed when returning to main activity after waiting for the data request, and an error will be displayed on the console: WOOTRIC_SDK: showSurvey: Can not perform this action after onSaveInstanceState()
Expected Behavior
When returning to main activity, survey can be displayed.
Wootric Version
2.18.0
Root Cause
When the activity starts in the background, onSaveInstanceState (Bundle outState) will be called, and then FragmentTransaction.commit () will throw this exception
Solution
Use commitAllowingStateLoss() to solve this issue most easily, but you can get more answers from here:
https://medium.com/mobile-app-development-publication/handling-illegalstateexception-can-not-perform-this-action-after-onsaveinstancestate-d4ee8b630066
The text was updated successfully, but these errors were encountered: