Camera not following Player in VR mode on Android

I was trying to develop a VR application and in the Game Mode on Unity, the camera follows the Player. But when I build and deploy the app on an Andoird phone, the camera just stayed static while the Player moves around. Below is the script for the camera. Please advise.

void Start()
{
transform.position = target.transform.position;
}
public Transform target;
// Update is called once per frame
void Update()
{
transform.position = target.transform.position;

}

When you are in VR the cameras position is being controlled by the VR device. Try making your camera a child of a transform and then putting your script on the Empty transform.

-CameraHolder <- move this around
     -Camera