The AppPresser team develops custom apps for clients who need great performance and custom features. Custom apps go beyond the current capabilities of AppPresser products, Learn more here.
Let’s say you play soccer on the weekends, and last Sunday you tweaked your back for the 3rd time. You visit your physical therapist to get checked out, because you figure you need more than ice and advil this time.
He fixes you up, scolds you for slide tackling at your age, and sends you on your way with a list of exercises.
You wake up the next day and start on your prescribed workout, and all of a sudden get a shooting pain up your spine. Wouldn’t it be great if you could just text your doctor and get an immediate response, instead of scheduling another appointment and waiting in pain for 2 days?
This is part 2 of our series about how to build a mobile app with WordPress and Phonegap using the JSON REST API. You can find part 1 here.
In part 2 of this series, we’ll learn how to add different views with page transitions.
Views are basically pages, but they work different than website pages. We are creating a single page app, so there aren’t really pages per se, but the content that is in view will change. That’s why it’s called a view.
Today we will add a feature where users can click on a post in the post list, and it will transition into a single post view. There will also be a back button to return to the post list.
The REST API is currently a plugin that allows applications to access the data produced by WordPress in JSON format. Version 1.0 was recently released, and it is slated to be in WordPress core by version 4.1 later this year.
This is incredible news for anyone interested in making mobile apps with WordPress!
The implications of this API have already been written about by WP Tavern, this article will focus on how to use it to build a mobile application.
Let’s talk about creating a simple mobile app using Phonegap that will pull data from your site using the REST API.