How to disable heads up notifications and immersive mode?
For the notification issue, try running settings put global heads_up_enabled 0 from adb shell.

For immersive mode: If the device is rooted you could use the Xposed mode App Settings.  It has a Fullscreen setting where you can force disable fullscreen for apps.