Steps to make a mobile application using drupal as

2019-03-22 06:59发布

问题:

I want to make a mobile application with drupal as back end because already done the same application as a website.I want to use the same drupal for my android application

Please any one help me with this

回答1:

Phone: phonegap drupal

Drupal: services

Drupal: libraries api Not to be confused with the other library that's for 6.

Secure Login drupal: oAuth

Secure login android: Oauth/ID

Tutorial: a monster tutorial

Tutorial: IBM Create a custom web services Grate write up must read.

Videos: services videos

Important fix for Services ATM: fixes for SPYC

This will give you a basic JSON API, If you follow that tutorial you should be aware your passwords are plain text over whatever airport wifi your clients happen to be passing through. Oauth will fix that. The tutorial dosn't give chrome extensions

Chrome: postman - best debugger for rest I've seen on chrome.

Android specific HTTP videos: 3 episodes 200 episode list

source code to that HTTP stuff and much more mybringback

Hint: The stuff about twitter's json & sutch is EXACTLY what your getting from drupal, this is why it's included for native development.

Iphone&Drupal: iphone & json video Not what your after per say but lets you watch someone write a quick module to patch services into there phone. I I recommend skipping to 5:35 after the install takes place.

Android: http-wraper & examples

Android: another HTTP wrap

Android: another another http wrap

Drupal: views datasource Enable views to spit out the JSON would work for much simpler projects where you don't care about user authentication, just using Drupal's CMS magic to glue the pieces together.



回答2:

Here is a blog post covering this topic in detail:

http://tylerfrankenstein.com/code/android-app-with-drupal-7-services-phonegap-and-jquery-mobile

I've also created a Drupal module to help out with this as well:

http://www.drupal.org/project/drupalgap



回答3:

Try to build a simple app using a webview http://developer.android.com/reference/android/webkit/WebView.html

in this view you can just display your drupal CMS using your existing url



回答4:

In our company we use drupal with REST api. We've created our own custom module which creates JSON files based on the nodes from drupal. From the app we then get these JSON files if there is new content.