Auto-rotation on iPhone, forced landscape on iPad

I have a game and my publisher absolutely has to have portrait mode for the phone version, but we don’t want to redesign everything for the iPad version, because portrait mode doesn’t make sense for it. How can I have auto-rotation work for the iPhone, but lock it in landscape mode for the iPad?

And yes, I’m aware of the rotation settings in Player Settings, but they only let me choose either to have auto-rotation on or off. Also, I even tried disabling iPad portrait orientation in XCode after the Unity build and it still would rotate anyway on the iPad! Thanks for any help you can provide.

Check the implementation here : Andrew's Tutorial Blog: Disable Screen Auto Rotation on Unity3D

As for the device detection, check this answer : Check is iphone or ipad - Unity Answers

1st reply helped, as far as coding is concerned, thx!

But to make it finally work with our iOS app (iPhones: portrait, iPad portrait AND landscape mode), we had to use the following Xcode and Unity settings: