Make App compatible with Cardboard and Daydream

So I am assuming there is a method of making an app easily work with cardboard and Daydream. But I cant actually find a call that checks if the device is Daydream or not. Since cardboard and daydream both have different vr device names I assume I have to make the toggle based off something, just not sure how. Anyone already solve such an issue?

You’re looking for VRSettings.loadedDeviceName. Don’t forget to import UnityEngine.VR to use it.