'AR Object is moving with the camera in unity

i create a GameObject in unity where my GPS is,and setting the unity camera with the GPS after I convert it to xyz here is my problem: when I move the android device the created GameObject moves with the device but I need it to be in the position it created with.

 GameObject TempGameObject=GameObject.CreatePrimitive(PrimitiveType.Sphere);
            TempGameObject.GetComponent<Collider>().enabled = false;
            TempGameObject.transform.position = new Vector3(x, y, z + 5f);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source