Geofencing in iOS

Description : This blog introduces you to use geofencing is iOS with in-build method of LocationManager. Geofencing uses global positioning system(GPS) to identify users geographical boundary. Now days geofencing would be too much useful in Internet of Things (IOT) application. As it can gives you position of user and also assigned some boundary with them. Geofencing is most accurate with WI-FI ON irrespective of it is connected to any network or not. Implentation : These are the 2 packages in objective c use to implement geofence : #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> Which you can included inside LocationManager.  Now will consider one example to elaborate the implementation of geofence. Consider user is wanted to go to location A. At this point we can start or define boundary of user with location A. Support of this methods are above iOS 7.0 version.     if(![CLLocationManager locationServicesEnabled])     {         //You need to enable Location Services     }         CLLocationDegrees latitude = //Latitude of location A     CLLocationDegrees longitude =//Longitude of location A     CLLocationCoordinate2D centerCoordinate = CLLocationCoordinate2DMake(latitude, longitude);     CLLocationDistance regionRadius = //Radius as per your requirement but as per iOS suggestion it should be above 250-300 meter. NSString *identifierId = //Any unique value for geofence identifying.     CLRegion * region = nil;     if([version floatValue] >= 7.0f)      {         region =  [[CLCircularRegion alloc] initWithCenter:centerCoordinate                                              radius:regionRadius   identifier:identifierId];     }         [locationManagers startMonitoringForRegion:region];     After...

iOS Application Testing using TestFlight

The blog is for beginners in iOS application development. If you have started building iOS application and wondering how to test it then TestFlight is the best option. TestFlight requires your account on apple store. Supported Platform : TestFlight supports iOS 8 or greater than that. Types of Testing on TestFlight : Internal testing Beta testing Internal Testing : Internal testing does not require to review and approve your app from apple store.  It allows 25 internal testers.For both internal and beta testing you just require emailId of the testers on which they are going to install there app. Beta Testing :  Beta testing require to review and approve your app from apple store. It might take approximately 5-6 days to review and approve from apple store. Once it is approved it will b available for beta testers. It allows 1000 beta testers. Every time you release your app on test flight for beta testing it requires to review and approve from apple store. But after first approval , next time it takes approximate 5-6 hours to approve. Steps to Follow : TestFlight needs Distribution Provisioning Profile to build an app file of your application. You can create this from your apple account and select this from Build settings. Below is the image just for your reference :   Download and install Application Loader to upload your app on iTunnes. Give the proper version while creating app file of your application. After uploading the app file on iTunnes using application loader. Then from apple developer console dashboard you can select the TestFlight Tab add submit the latest build for approval. Also you can add the...