Book Image

PhoneGap for Enterprise

By : Kerri Shotts
Book Image

PhoneGap for Enterprise

By: Kerri Shotts

Overview of this book

Table of Contents (16 chapters)
PhoneGap for Enterprise
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Communicating between Mobile and the Middle-Tier

To this point, we've largely focused on various security concerns and the backend systems, and much of what we've discussed applies to applications on any platform and not just those developed on PhoneGap. In this chapter, however, we'll cover the creation of a new mobile app that can communicate with the backend we've built.

In this chapter, we'll focus on the following points:

  • A brief look at Promises

  • Verifying that the communication channel is secure

  • Using XMLHttpRequest to communicate with the backend RESTful-like API

  • Authenticating the end user with the backend