Implement an injectable service

Assignment Help Other Subject
Reference no: EM132805914

CSC73010 Programming Mobile Systems - Southern Cross University

Part 1 - An Ionic app using Ionic native

In this section, you will develop an app to use Cordova and Ionic native plugins which access some of your device's hardware sensors. It is unnecessary to test your app on a real device, but you should if you have one available. The app should be working correctly on an emulator (it will be tested).

You are requested to develop a multipage Ionic app. The pages required are:
1. A page to display the current charge level of your device's battery. Have your app also displays different messages when (2 marks):
• the battery goes critical
• the battery goes low status
• the battery starts charging or stops charging
You will need to add ‘Battery Status' Ionic native plugin to your app

2. A page to display:
• device's model
• platform (device's operating system name)
• name and version of the operating system
• device's manufacturer
To display the above information, you will need to add ‘Device' Ionic native plugin to your app

3. A page to display the device acceleration in X, Y and Z directions (2 marks). Activate the vibrator when the device is shaken (1 marks). You can either activate the vibrator for a fixed time or toggle it on/off by the shaking motion. Note that the vibrator may be difficult to emulate, so if you do not have a real device, display a message while the vibration is active and use very slow shakes, so you can alter the emulator to simulate shaking.

4. A page that has
• a button that plays a sound when swiped and another sound when swiped again. You can have more than two sounds if you like (cycle through them with each swipe) .
• a button that toggles the flashlight on/off using the Flashlight plugin.

5. Add a splash screen to your app. Any graphic will do. You will need to research the splash-screen plugin for this. You will not need to call show() or hide() as the default configuration will show the screen for three seconds when the app starts. You will, however, need to configure your splash screen by editing config.xml. There are many useful instructions on the internet, so look further than the official documentation.

Part 2 - An Ionic app to manage a pet database
The aim is to develop an Ionic multipage app that uses Ionic components, to maintain a small database of pet information while the app is running on a mobile device, or in a browser window. The app will access a remote website using RESTful operations (see below) to create, edit and delete records on the website.

Your app will implement an injectable service to access the remote website using AJAX techniques. Each page component will access this injectable service for remote HTTP operations.
The data records have the following format:
• Pet name - string. This will be a unique key for the data.
• Pet species - string (must be "dog", "cat", "fish", "bird", "snake" or "other")
• Pet age - number (will be the whole number of years)
• Pet sex - string (must be "male" or "female")
• Pet phone number (for lost pets) - string The data has the following requirements:
• Each record must have a value for all fields. No field can be blank.
• The pet ‘species' and ‘sex' must be one of the options shown.
• The pet name can only be entered and saved once (it must be unique for each pet). Your app will have several pages:
• Home page with greetings and your name as app author
• A page for listing all pets
• A page for adding new pets
• A page for editing the existing pets. This page will also allow searching for pets and deleting a pet from the data.
Your app will have help information that appears over the current page when requested (each page require a help widget). The delete operation will require a prompt to confirm the delete. This prompt should be an Ionic dialog (not a JavaScript alert!). You must have at least four pages on your app, and if you chose the tabs template, you must change the icons to be appropriate (3 marks for all of these).

Use appropriate Ionic user interface components to implement the app. Several things are missing here from the usual app. For example, there is no splash screen requested, and no media or other native interfaces (e.g. pictures of your pets). You can add them if you wish, but these have not been added as requirements to simplify the app.

The sever is at URL attached and the RESTful operations are as follows:
GET PetServ/ - get all the pet data as a JSON response (an array)
GET PetServ/name - get data for a pet named "name"
PUT PetServ/ - updates the record on the database with the PUT body, which is a JSON format pet record. If the pet name exists, the associated data is updated. Otherwise, a new pet record is created.
DELETE PetServ/name - removes the record with given name. Note that removal of pet named "terry" is forbidden (status 403 returned) so that students will find at least one record on the server. Successful deletion of other records must return a proper message.

Attachment:- Programming Mobile Systems.rar

Reference no: EM132805914

Questions Cloud

How many units must be sold to break even : Jala Enterprise developed the following information for its product: Sales price RM90. How many units must be sold to break even
What is the effect on Fund A NAV : The funds needed to buy the new shares are obtained by selling 676 more shares in Fund A. What is the effect on Fund A's NAV
How much overhead will be applied to Monkey Bars : How much overhead will be applied to Monkey Bars using traditional costing using direct labor hours as the basis for allocation
Calculate the recoverable amount : After performing an annual review of impairment on the PP&E, Bengals obtains the data: Asset's value in use $565,000. Calculate the recoverable amount
Implement an injectable service : Display a message while the vibration is active and use very slow shakes, so you can alter the emulator to simulate shaking
Prepare the journal entries to record each bond transaction : On July 1, $900,000, 9%, 5-year bonds dated July 1, 2019, were issued at 102. Prepare the journal entries to record each bond transaction
Compute the cost of goods sold : Esposito's ending inventory is valued at the average cost for the last quarter of the year. Compute the cost of goods sold
Prepare all general journal entries : Use this information to prepare all General Journal entries (without explanation) required to record the events for December 31, 2019
What is the size of the single payment : April has the following debt: She owes Jade $625 in 7 years. She owes Carly $825 in 2 years. What is the size of the single payment

Reviews

len2805914

2/23/2021 3:09:40 AM

Hi, I need this assignment done in 8 hours as of now So please time make sure u read all the instruction properly.

Write a Review

Other Subject Questions & Answers

  Describe how your discussion will be evaluated

Your initial discussion thread is due on Day 3 (Thursday) and you have until Day 7 (Monday) to respond to your classmates.

  Professionals distinguish between these classifications

What are they, and how do criminal justice professionals distinguish between these classifications?

  Suggest possible educational policy lesson obama may have

Suggest one possible educational policy lesson President Obama may have learned from previous administrations. Provide a rationale for your response.

  Discuss two barriers that might hold nursing practice

The Institute of Medicine has stated a goal that 90% of practice be evidence-based by 2020. According to HealthyPeople.gov, the United States is currently.

  Discuss the policy requirements of the government

Discuss the differences in policy requirements of the government and health care sectors. You may perform a quick Internet search.

  Examine how your philosophy has evolved during your courses

Write a teaching philosophy that is at least 500 words. Then, examine how your philosophy has evolved during your courses of study in the M.Ed. program.

  How world events may have affected talent management

As you speculate how world events may have affected talent management, determine a method to refresh the talent management strategy of your organization.

  What is the european convention on human rights

Examine the development of Human Rights protection in the United Kingdom. What is the European Convention on Human rights.

  How effective is the parole

Based on your reading, how effective is parole? Which types of parole are the most effective? Explain your rationale. Do you think parole should be abolished altogether or reinvented?

  Compare the roles of the practice and research scholar

Compare and contrast the roles of the practice (DNP) and research (PhD) scholar. How could these roles add value in addressing a practice problem at your.

  An analytical explanation of doves campaign

Proof read the given paper. - The given topic is: Feminism Sells: An Analytical Explanation of Dove's Campaign.

  How do the lyrics reflect the era of the songs you chose

How do the lyrics reflect the era of the songs you chose. Do the lyrics reflect a specific perception about women or men? You may include a discussion about the images of the music video for the current song. How are we affected by these lyrics & ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd