T-Mobile Galaxy S8 Can no longer connect Gear VR or USB peripherals to my S8+

Ok for some reason it started working for me again, the only things I can see that I did differently are
1- accidently closed all my tabs in the Samsung browser.
2- set the phone to no longer notify me everytime some app uses the microphone or camera etc.
3- completed a couple of lessons on solo learn.
 
All right, so it is a hundred percent nailed down to the sololearn/learn Python app. normally if I put my phone in the VR or attach an accessory it would simply not work. but if I turn on either of the two apps, close them and then put the phone in the VR or attach an accessory the phone recognizes them.
Btw I am on Koodo S8 in Canada
 
so the greenify app give me the permanent solution, I greenify solo learn and I have not had this problem since.