How about just storing the boolean like isDismissedAfterShowing.
Making it true when you get onDismissCallback()
When app reopens check that value and display it again.
Not sure but when you also need to check when app is going to close and dialog was already showing in that case also save that value as true in preference