Device detection question about iPad...
gamesfua
Member Posts: 723
Hey all! Long story short i'm making an iPhone only game. Meaning there is currently no plans for universal binary at the moment. However inside my game is both an iphone4 and iphone5 version. A startup rule looks at your screen width and sends you to the appropriate version.
My question is a simple one- do i have to add a rule that also says if screen width is 1024 go to iphone4 version? Or does it automatically go in the direction of screen width 480 (i.e. iPhone 4 version)?
I believe it will, but i don't understand why?
Thanks so much!
My question is a simple one- do i have to add a rule that also says if screen width is 1024 go to iphone4 version? Or does it automatically go in the direction of screen width 480 (i.e. iPhone 4 version)?
I believe it will, but i don't understand why?
Thanks so much!
Comments
Anyways, so how can i work around this? Just have a rule that says "if width is 1024 then go to iPhone 4 version?" Will that work? Thanks!
1024 is for iPads 1 and 2/iPad Mini, not for iPhone 4!
Chakku
So i just need to know if i need to say that IF width is 1024 to go to iPhone 4 version of game. Thanks
I understand that it is not a universal app, but unless it's is opened on an iPad, it will never be 1024.
Although if you are trying to make it run the iPhone 4 resolution when it opens on an iPad, then what you said sounds about right
Chakku
Thx
Chakku
Let me start again.
Upon game start there are two possible paths. Go to the iPhone 4 version or the iPhone 5 version. The logic says IF width is 480 then go to iPhone 4 version. IF width is 568 then go to iPhone 5 version. The end.
If i were to leave this logic as is, would an iPad user be directed to the iPhone 4 version? I.E. does an iPad register 480 as its resolution since its in an emulation mode (i.e. 2x zoom mode).?
And lastly, does the latest iPad (4) have a greater resolution than 1024 that i need to be aware of in concern of this subject? Thanks!
- Thomas
I had two different paths. One was a path that said if screen width is 480 or 1024 then go to X. The other said if width is 568 go to Y. I tried this on an iPad 1 and iPad 4. Both registered the 480 or 1024 link. So i guess you don't need to put in a code for 2048 which i believe is the new iPad. But i could be completely wrong about that.