Handheld VR for Mobile Platforms

Hey,

I wanted to create an application to be deployed on Mobile devices (Android,iOS) but i need it to be in a handheld VR mode and not side by side VR for cardboard,
I was wondering if spatial tracking will be handled by the mobile device using compass and gyroscope. I need the user to be able to move around in a VR room by simply walking around, i know this can be done in AR, but i was wondering if it is possible to do in VR as well