How to Copy a Login Code Without the App Restarting
Question details
The user needs to find a way to enter a text message verification code during login without leaving the current app screen.

- Product
- Mobile Applications
- Device & OS
- not provided
- Scenario
- Entering a multi-factor authentication (MFA) verification code received via text message into a mobile app login screen.
- Observed behavior
- Switching from the login screen to the text messaging app causes the login process to restart or return to the beginning, forcing the user to start over.
Ensure your device is updated to the latest operating system version, as modern mobile devices include built-in SMS autofill features designed specifically to prevent this app-switching issue.
Use Autofill or Notification Previews
This is the most seamless method as it allows you to retrieve and input the code while keeping the login screen active.
Modern mobile devices can detect incoming verification codes and automatically suggest them on your keyboard, bypassing the need to open your messaging app.
After requesting the verification code, do not minimize the app. Keep the login screen active and the cursor in the code input box.
Wait for the text message to arrive. Look for the verification code suggestion to appear directly above your virtual keyboard and tap it to automatically fill the field.
If autofill does not trigger, swipe down slightly from the top of your screen to read the verification code directly from the text message notification banner without leaving the app.

Use Split-Screen Mode
If autofill is unsupported or disabled, split-screen mode allows you to view your messages and the login screen at the same time.
Log in to WPS Office Seamlessly Without SMS Codes
Avoid the frustration of app restarts and SMS verification loops by utilizing WPS Office's seamless third-party login options. Access your documents instantly and securely without relying on text message codes.
- 1. Launch WPS Office: Open the WPS Office application on your mobile device.
- 2. Choose a login method: Tap on 'Sign In' from the home screen and select a third-party login option such as Google, Apple, or Facebook.
- 3. Authorize access: Follow the secure on-screen prompt to authenticate using your existing account credentials, bypassing the need for manual SMS code entry.
- 4. Access your files: Once logged in, your cloud documents and settings will automatically synchronize without interruptions.

Frequently Asked Questions
Why does my app restart when I switch to my text messages?
Mobile operating systems manage memory aggressively to optimize battery life. When you leave a heavy app to check your messages, the system may temporarily close the background app to free up RAM, which causes it to restart when you return to it.
How do I turn on SMS autofill for verification codes?
On iOS, this feature is usually enabled by default under your device's Password settings. On Android, you can typically enable it by going to Settings > Google > Autofill, and ensuring 'SMS verification codes' is toggled on.
What should I do if my phone doesn't support split-screen or autofill?
If your device lacks these features, the easiest workaround is to have a second device (like a laptop, tablet, or another phone) nearby. You can receive the SMS on your main phone while keeping the login screen open, and view the synced message on the second device.
Does requesting multiple verification codes cause errors?
Yes. If you repeatedly tap 'resend code', the system generates multiple overlapping codes. Always wait at least 60 seconds for a code to arrive, and ensure you enter the most recent code received, as older ones are instantly invalidated.




