InAppBrowser not reacting to device sensors in VR mode

I have a web project developped in babylonjs. The thing is a 3d scene with objects and all. I have used ionic cordova to build the android app that links to the web project in a inappbrowser. The project works fine when i access it directly from my android. However when i run the android app, click to go to the link, enter VR mode…everything displays correctly BUT the camera does not react to the device movements. Any help please.
…btw Im new to ionic
Cheers