Integrating User Accounts with Appcelerator Cloud Services
TO INTEGRATE USER accounts into the mobile application, you will use the Appcelerator Cloud Service user object discussed in Chapter 5 and leverage the built-in social medial functionality from Appcelerator’s Facebook module and Appcelerator Cloud Service’s ability to link a user object to Facebook credentials.
After you create the user account, you will be able to log in with the user and update the user’s information in the Users Settings page, which is covered in Chapter 11.
Adding the Login User Interface
You need to create a few more controller view combinations to support the three new screens—the User Choice, Create User Account, and Login screens. For this application you will integrate all of the screens into one view called the login view, which will have an associated controller to interact with the application.
You create the login controller the same as you have created the previous controllers and then open the login.xml view file associated with the controller you just created.
You will start off with the window object as the container for the remainder of the screen elements, but in this case you will also add a ScrollView to the window container. You are adding the ScrollView to the container to help manage the user interface when the keyboard is displayed for the user to enter text into fields. What the ScrollView does is automatically scroll the window contents so the text entry field is visible; ...