How to Fix Microsoft Defender Keeps Turning Off on Samsung Android
Question details
The user needs to prevent Microsoft Defender from automatically closing in the background and falsely reporting an offline status despite a working network connection.

- Product
- Microsoft Defender for Android
- Device & OS
- Samsung Z Flip 6 (Android)
- Scenario
- Running a background security application on a modern Android device connected to the internet.
- Observed behavior
- The application repeatedly stops working, gets killed in the background, and reports that the device is offline even when Wi-Fi or mobile data is active.
Ensure your Samsung device has an active, stable internet connection and that you know your Microsoft account credentials in case a reinstallation is required.
Disable Battery Optimization and Allow Background Activity
Android's aggressive battery management forces background apps to close. Setting the app to unrestricted battery usage prevents Defender from shutting down unexpectedly.
Samsung devices utilize strict battery optimization techniques to extend battery life, which often suspends or kills apps running in the background. Security apps like Microsoft Defender require continuous background execution to function properly.
Navigate to 'Settings' on your Samsung phone and select 'Apps'.
Scroll down the list of installed applications and tap on 'Microsoft Defender'.
Tap on 'Battery' and select 'Unrestricted'. If you are on an older Android version, toggle off 'Optimize battery usage' or enable 'Allow background activity'.

Enable Background Network Access
Ensure the app has permission to use both Wi-Fi and mobile data in the background so it doesn't falsely report being offline.
Reinstall Microsoft Defender from Google Play
If adjusting system settings doesn't resolve the offline error, a clean installation can clear corrupted cache files and fix underlying app glitches.
Try WPS Office for Your Mobile Productivity Needs
While troubleshooting background app issues on your Samsung device, consider switching to WPS Office as a lightweight, free alternative for your document needs. It offers seamless compatibility with Microsoft files without heavy background processes that drain your battery.
- 1. Search for WPS Office: Open the Google Play Store on your Samsung device and search for 'WPS Office'.
- 2. Install the App: Tap Install to download the free, all-in-one document editor.
- 3. Open and Edit: Launch WPS Office to instantly access, create, or edit your Microsoft Office files directly on your Android device.

Frequently Asked Questions
Why does my Samsung phone keep closing background apps like Microsoft Defender?
Android's built-in battery optimization aggressively closes background apps to save power. You must manually set security or communication apps to 'Unrestricted' battery usage in your device settings to stop them from being killed.
Why does Microsoft Defender say I'm offline when my internet is working?
This usually happens if background data usage is restricted for the app, if a specific network firewall is blocking Microsoft's servers, or if the app's cache has become corrupted. Enabling background data usage typically resolves this.
Is it safe to clear data and cache for Microsoft Defender on Android?
Yes, clearing the app cache or data is perfectly safe. It will reset the app to its default state, meaning you will simply need to log back into your Microsoft account and re-grant permissions the next time you open it.




