Detect ipad 1 vs ipad 2

You must Login before you can answer or comment on any questions.

Is there a way to differentiate between the ipad 1 and 2(&3)?

I've tried Titanium.Platform.processorCount which returns 1 for both ipad 1 and 2

osname is also the same for both devices.

It's for an internal app where I need to display different views and just a placeholder if the user is viewing on the lower powered ipad 1.

Thanks

2 Answers

Accepted Answer

I don't have an iPad handy right now, but does Titanium.Platform.model give you what you need?

— answered 9 months ago by Shannon Hicks
answer permalink
1 Comment
  • Yes - Thankyou!

    Our iPad1 returns "iPad1,1" The iPad2's I have here all return "iPad 2"

    Note for anyone else, there is no space in the iPad1 result.

    — commented 9 months ago by Malcolm Bailey

I think you're looking for Ti.Platform.DisplayCaps

You can detect density & resolution.

— answered 9 months ago by Shannon Hicks
answer permalink
2 Comments
  • That will give me (ipad1 || ipad2) vs (ipad3) won't it?

    I really need (ipad1) vs (ipad2 || ipad3)

    Both 1&2 return the same figures as they are non retina...

    — commented 9 months ago by Malcolm Bailey

  • You're totally right. I keep forgetting the iPad 2 isn't retina.

    — commented 9 months ago by Shannon Hicks

Your Answer

Think you can help? Login to answer this question!