How do I connect via ajax to an iPhone app?
-
I’m developing an app for the iPhone (eventually Android too) that will need to validate the user, and use Ajax to send and receive data from my WordPress site.
In the handlers for the Ajax calls, there is a parameter for user ID, which defaults to the currently logged-in user. So far, I understand how to get things working with the front-end part of the site, but will soon be working on getting the app working.
A few questions to get me started on the right path:
- How do I handle having the app login to the site via Ajax?
- Will the site remember/track the user that is logged in via the app? Or will I have to repeat the login credentials with each Ajax call?
- Do I need to have the app do regularly timed keep-alive calls to the server?
I don’t have any code to share yet, of course, but I need to know where to start on the app side of things. I have the code for the Ajax PHP part done, and working with the pages on the website. I’m not asking for help with specific code in the phone app, just what it will need to do in communicating with the serve.
Thanks for any help and pointers you may have!
You must be logged in to reply to this topic.