Based on your description, the issue could be related to missing permissions or incorrect handling of app lifecycle events.
Can you check the error logs (Logcat for Android, Console for iOS) and send me the crash message? Also, which framework and programming language are you using?