问题
I am a web developer but recently I have been asked to build a backend of a mobile app.So basically there is a single form inside the app and the user fillup the form and hit submit and the data will be sent to a secured server.The app will be made by someone and I just need to get the data from the app and store it in a db.
Now I have few questions like:
Do I need to register with apple developer account or some other account like android?
Is there any guide or tutorial how to get the data from the app and process it.
Also once the app is made by the developer how can it be downloaded?
回答1:
Take your favorite server-side programming language. (eg. php, ruby....)
- You can create a url where the app can make post requests.
- Tell the app developer that he should send the data in json within the post requests. He can send the form data after someone has filled it. Let him add an unique id to every form data, to make sure that you do not save duplicated data.
- When you got the json parse it and push to the DB.
Optional:
- Implement authentication
- Implement encryption
You do not need to have a developer account for that (creating a web service), but respectively the app developer.
回答2:
You might check out Parse: http://parse.com. Could save you some work?
回答3:
First thing i want to clear that there is nothing about back end process for web developer. That all thing should have to manage by Mobile Developer.Web Developer just have to get Request and perform action & return Response base on request.
Doesn't matter that process is running in background or four ground just manage response time. Mean if User didn't get response in such specific time then try to mange that and return appropriate response to user.
If you don't know how make web service then www.w3school.com and some other link or example also that will help you.
Start with basic concept and then switch to next step.
Good Example about Android + PHP : Web service
Good Luck !!
来源:https://stackoverflow.com/questions/14749989/mobile-app-backend