Anda di halaman 1dari 7

Case Study

Location-based GPS App for Online Restaurant Surveys

www.brainvire.com | 2013 Brainvire Infotech Pvt Ltd

Page 1 of 1

Client

Requirement

This application is an online survey system for restaurants. Designed to run on cross mobile platforms (Android, iPhone and Blackberry), this application allows users to look for restaurants in the nearby location, fill up their survey and win vouchers or coupons. The application makes use of location-based technology. Client required the following: Location-based restaurant survey application that alerts users about nearby restaurants and best deals. Survey form loads on users mobile device System must allow to set rewards for consumers Flexible UI that allows restaurant owners to build concise and interactive surveys Social network integration to enable instantaneous sharing Ability to reduce chances of fake surveys (integrated user blocking mechanism) Advanced filter and sorting techniques Data archival facility Quick data assimilation facility according to trends, demographics, fashion, etc. Ability to print detailed analysis (graphical) reports

www.brainvire.com | 2013 Brainvire Infotech Pvt Ltd

Page 2 of 2

Project

Challenges

Team faced the following challenges: Setting up client server interaction to fetch data of restaurant within specified range. Showing restaurants located within a specified range, as per set by the user, on MAP. Survey reports and images synchronized as per the users account on the device. It reported on the server to fetch rewards.

Technologies Used
Xcode 4.2.1
Xcode is a tool, also called as IDE, used to develop iOS and Mac applications. It is a main component of Xcode toolset. It groups most of the tools needed to develop software in a streamlined and interactive manner. The Core Data framework provides generalized and automated solutions to common tasks associated with object life-cycle and object graph management, including persistence. iOS is a software development kit used to develop iPhone, iPad applications specific to OS versions as required by the user. The modelviewcontroller framework separates the representation of information in a computer program from the user's interaction with it. The model consists of application data and business rules, and the controller mediates input, converting it to commands for the model or view.

Core Data Framework

iOS sdk 5.0

MVC

Manpower

Project Leader Developers Designers

1 1 1

Quality Assurance Testers

www.brainvire.com | 2013 Brainvire Infotech Pvt Ltd

Page 3 of 3

Planning
The following development approach was adopted to equip the site with numerous features and functionality mentioned before: Development High Level Coding Standards were followed for managing backup data volume. Simultaneously, synchronization with server for recent data modulations was also performed. user friendliness and a interactivity. Designing the application interaction and flow to add user-friendliness Syncing existing and newly available data for backup with our database required specific attention. This helped in result generation. iPhone defined standards. The User Interface Layer was designed as per the iPhone-defined

Architecture
Application Life Cycle
The application life cycle constitutes the sequence of events that occurs between the launch and termination of your application. In iPhone/iPad OS, the user launches the application by tapping its icon on the Home screen. Shortly after after the tap occurs, the system displays some transitional graphics and proceeds to launch your application by calling its main function. From this point on, the bulk of the initialization work is handed over to UIKit, which loads the applications user interface and readies its event loop. During the event loop, UIKit coordinates the delivery of events nts to your custom objects and responds to commands issued by your application. When the user user performs an action that would cause your application to quit, UIKit notifies your application and begins the termination process.

The following figure depicts the simplified life cycle of an iPhone application. This diagram shows the sequence of events that occur from the time the application starts up to the time it quits. At initialization and termination, UIKit sends specific messages messages to the applications delegate object to let it know what is happening. During the event event loop, UIKit dispatches events to your applications custom event handlers.

Figure: Application life cycle

Arc
www.brainvire.com | 2013 Brainvire Infotech Pvt Ltd
Page 4 of 4

Event Handling Cycle

After the UIApplication main function initializes the application, it starts the infrastructure needed to manage the applications event and drawing cycle, which is depicted in the following figure. As the user interacts with a device, iPhone/iPad OS detects detec touch events and places them in the applications event queue. The event-handling event handling infrastructure of the UIApplication object takes each event off the top of this queue and delivers it to the object that best suited to handle it. For example, a touch event event occurring in a button would be delivered to the corresponding button object. Events can also be delivered to controller objects and other objects indirectly responsible for handling touch events in the application.

Figure: The event and drawing cycle

In the iPhone OS Multi-Touch Touch event model, touch data is encapsulated in a single sin event object (UIEvent). ). To track individual touches, the event object contains touch objects (UITouch), ), one for each finger that is touching the screen. As the user places fingers on the screen, moves them around, and finally removes them from the screen, the system reports the changes for each finger in the corresponding touch object. When it launches an application, the system creates both a process and a single thread for that application. This is initial thread becomes the applications main thread and is where the UIApplication object sets up the main run loop and configures the applications eventevent handling code. Figure shows the relationship of the event-handling event handling code to the main run loop. Touch ch events sent by the system are queued until they can be processed by the applications main run loop.

www.brainvire.com | 2013 Brainvire Infotech Pvt Ltd

Page 5 of 5

Figure: Processing events in the main run loop

The MVC Architecture is a combination of Model-View-Controller. Model

1. Model: The model object knows about all the data that need to be displayed. It is model who is aware about all the operations that can be applied to transform that object. It only represents the data of an application. The model represents enterprise data and the th business rules that govern access to and updates of this data. Model is not aware about the presentation data and how that data will be displayed to the browser. 2. View: The view represents the presentation of the application. The view object refers to the model. It uses the query methods of the model to obtain the contents and renders it. The view is not dependent on the application logic. It remains same if there is any modification in the business logic. In other words, we can say that it is the responsibility respo of the view's to maintain the consistency in its presentation when the model changes. 3. Controller: Whenever the user sends a request for something then it always go through the controller. The controller is responsible for intercepting the requests requests from view and passes it to the model for the appropriate action. After the action has been taken on the data, the controller is responsible for directing the appropriate view to the user. In GUIs, the views and the controllers often work very closely together. t

www.brainvire.com | 2013 Brainvire Infotech Pvt Ltd

Page 6 of 6

Development Highlights
This application for iPad is built around objective C and core data framework. This application was also made compatible to iOS sdk 5.1 at a later stage. Almost all the modules are developed using foundation, core graphics and UIKIT frameworks. All the user interface items are placed in view controllers and are linked with the controller files project along with the outlets, actions of the UI element. Integration of various 3rd party tools was required. The site was developed and fully functional within a span of 3 months.

www.brainvire.com | 2013 Brainvire Infotech Pvt Ltd

Page 7 of 7

Anda mungkin juga menyukai