Possible solutions if adb devices shows a device as unauthorized:
List of devices attached
17310D821D > unauthorized
Disconnect USB between PC and device
Stop adb server by entering adb kill-server in command window
On device use Revoke USB debugging authorizations in Developer Options
On PC delete adbkey file ...
I had similar issues with late or no notifications showing up, eg for Snapchat, Messenger.
It is called PowerGenie and it kills all apps that are not on its whitelist. You cannot add custom apps on their pre-defined whitelist. This means there is no other way to fix proper app functionality on Huawei than uninstalling PowerGenie.
Well, I believe the easiest way for you to avoid that would be to disable auto-rotate in your phone.
The automatic rotation tool is very sensitive, based on accelerometer, and some users complain that Motorola's is not so good. You may try also to calibrate it using an app like Accelerometer Calibration Free or maybe following the tips on this tutorial.
You can open up a new command prompt window and issue whatever adb commands you want. They would work.
You can also put scrcpy in background if you want to use the same command prompt window to do something else there. Head over to Superuser to know more about this.
I just had this issue here with P10 - WhatsApp would not receive until opened or at least running in the background. Now it receives even if closed. I solved it by:
Settings > Search for setting > Ignore battery optimisation
If by 'Allowed' apps you don't see Whatsapp, click on the corner triangle for 'All apps', search for Whatsapp and 'Allow'
The answer from Nemexia about disabling Google Chrome was down voted but it worked for me.
Many apps were crashing all of a sudden. It seems to be related to Chrome's webview.
Instead of disabling Google Chrome, try just to clear Chrome's cache (Settings > Apps > Chrome > Storage).