I want to know how to detect GPS HardWare in present in Iphone or not
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Even though you can not determine this using the SDK, you may exploit your knowledge of current models. If you limit yourself to iPhone 3G, iPhone 3GS and iPod Touch 2nd generation (I do not personally support older iPhone edge or iPod Touch 1st generation), then you already know that the iPhone models ship with a real AGPS unit while the iPod Touch 2nd generation can use – if and when available – geotagged wifi hot spots. You may then use the following method to determine the model you are running on:
The method returns @”iPhone2,1″ for the 3GS, @”iPhone1,2″ for the 3G and @”iPod2,1″ for the ipod touch 2nd generation; you call it as follows
and use it as follows: