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...

Developing Single Page Application (SPA) using AngularJS

The frameworks and technology itself impressed me to write my first blog. I am happy to introduce you about the javascript MVC framework named as AngularJS. Why AngularJS ? The first answer to this question must be, it is supported by Google. As it is supported by google the documentation and help is easily available online. If your application is REST based and you want to develop the most interactive application you must go with the AngularJS. It is also matured javascript MVC framework. Sample Code to Download from Github:  Click here to download sample code Once you download the code from github please follow the below link to access application setup : localhost/AngularJs-master/#/table/operation We have worked on the projects which is having Single Page Application(SPA) requirements. It contains Sorting, Custom search, Nested search and CRUD operations on table. These type of requirements are pretty generic for Single Page Application(SPA) and our blog and Github project would help you on that. Sorting in Application :  //inside controller $scope.sortType = 'name'; $scope.sortReverse = false; //on html page <tr ng-repeat="user in userRecords | orderBy:sortType:sortReverse | filterUserMgmt:searchUserMgmt"> Custom and nested filters in angularjs :  //on html page <div class="btn-group" role="group"> <input type="text" class="form-control" placeholder="NAME / COMPANY NAME" ng-model="searchUserMgmt" style="height: 30px; background-color: #EBF1F5; border: none;"> </div> <tr ng-repeat="user in userRecords | orderBy:sortType:sortReverse | filterUserMgmt:searchUserMgmt"> //inside tableFilter.js tableMainApp.filter('filterUserMgmt', function () { return function (dataArray, searchTerm) { if (!dataArray) return; if (!searchTerm) { return dataArray } else { return dataArray.filter(function (user) { if(user.companyProfile != undefined){ return (angular.lowercase(user.name).indexOf(searchTerm || '') !== -1 || angular.lowercase(user.companyProfile.coName).indexOf(searchTerm || '') !== -1); }else { return (angular.lowercase(user.name).indexOf(searchTerm || '') !== -1); } });...