Connect existing Drupal page with PhoneGap iOS App - iphone

Case:
I have an existing page based on Drupal and going to develop a phoneGap iOS App. That means I just need the information of the existing page and want to fill these data in the new app.
My Question is now, do somebody know weather there is a work around or work flow to do so resp. how can I connect the existing page with another page or in my case phoneGap to get just the data? I'm new with Drupal and phoneGap so maybe you have some pages with information, tutorials or some help how to do this.
Thanks in advance yves

Drupal offers a module called "Services" which will allow you to get data or services from your website. You may need to create your own methods on that module to get the information you want to retrieve.
As for the iOS side, you can retrieve the data via XML-RPC, Rest or whatever communication protocol you choose at the server side, or go all the way with drupal-ios.
https://github.com/workhabitinc/drupal-ios-sdk/
You should start looking for the Services module and play with it. You will have an embedded console on that module to test the methods.
Once you're finish with that, take a look at drupal-ios or go deep with your own implementation via XML-RPC or whatever.

Related

Login Logout authentication and uploading views and pics in our applcation

I want to create an application in which i want a login logout authentication from the database file that can be handled by web services. This application should always need to be connected with the internet and after login i need to upload images and also give there views about the image and i am not getting any idea how start work on that can anyone help me.... I want to use this application some sort similar like facebook.
There is also a problem that which type of application i create native or web or else. Please help me to start this application.....
Try setting up a server that can handle the requests from your app. Your app can then request content or upload content to the server using NSURLRequest. For further reading refer http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/URLLoadingSystem/Concepts/URLOverview.html
I think you are asking the wrong question. What web development language do you know to help you accomplish this? There are many different ways to go, like open source as opposed to paid, which services best handle your specific needs, like Ruby or PHP, which RDBMS to use, etc. If you don't know any programming, then it is going to be a long road. Your first step should be taking what you already know and branching from there, learning what you need to know. In your case, you'll need to learn server side scripting, connect it with a database, how to set up a server to put it all in, as well as client side development like javascript to go with the html.

Parsing Injected Web Page Data

Trying to create an iPhone app (Objective-C) for my school. I want it to search for, and then parse any emergency announcements on the web page. They do not occur in the HTML, and are probably written in with PHP or another server-sire language. Any way i can access that information? (Link: http://www.ridgefield.org/)
I recommend that you parse http://www.ridgefield.org/ajax/dist/emergency-announcements as this is the address where the website fetches the info.
Next time you could use the Firefox plugin Tamper Data found at https://addons.mozilla.org/en-US/firefox/addon/tamper-data/. Try it out!

preparing cms for iphone app development

I have created an iphone app which basically pulls json feeds into my iphone..I have created the JSON file manually and put the jSON file in My FTP Server..as far as updation are concered the client gives me the updation via email or skype which i then update my JSON file that is in the server.what i want to develop is a Backened CMS so that the client is able to handle the maintanenece.i m a noob as far CMS is concerned,which is the best place to start..is wordpress a better..Any advice on how this can be achived would be helpful
Appnx has a pretty neat backend.
iPhone-CMS uses TYPO3 as the backend and can generate native apps.
Please take a look at our JSON-based StorageRoom CMS. We built many mobile apps ourselves and always had the content problem, so one day we created our own CMS.

How to integrate a comment system in an ios app?

Lets say my web server app is in drupal or wordpress, or even code igniter, how would one get about integrating a comment system? TSpecifically what I am trying to find out is if anyone was able to find a successful approach that would save some time as opposed to me going down the road of tying myself to a specific CMS content system.
Just throwing in some considerations here (by no means complete):
Are users also accessing your content (and its comment system) via the website?
If so, you'll want to have a comment interface that is available on the website too, and the easiest choice may be to use the comment system natively supplied by your CMS / through plugins.
If on the other hand your users will only be using the iOS app(s) for commenting (via a native interface) or you'll be heavily customizing the website anyway, using a comment system independent from your CMS might be an option.
How will the content be accessed from the app?
Via a simple web view? Or will the app download via an API provided by your CMS and display it in a native UI? If you are using an API provided by your CMS, you will have the same issue with your content as with your comments when moving CMSes.
You could add an intermediate layer that abstracts from the specific CMS API.
Or if you don't really plan on moving CMSes but want to prepare for that event nevertheless, you could simply implement a no-frills "version check" to ask the server for the CMS kind / version it is using, and if it doesn't match what your app expects, ask the users to update. This isn't the prettiest user experience, but it might be sufficient depending on what you're actually planning.

Drupal Website to iPhone Webservice API in XML Format

We have our clients website in Drupal at present, for which we needs to create an iPhone App.
So any ideas on how to do that?
Is there any ready made available plug-ins or modules which we can use to generate Category / Articles XMLs directly from database, without much custom code n its headache?
All your suggestions are most welcome..
Thanks !
Yes. You should start with "Services" module, which will allow you to communicate your website with external websites or applications.
Also, you will need a way to communicate with Drupal. We're using XMLRPC, but you can use JSON, Rest...up to you.
Here you have an starting point: http://www.zivtech.com/blog/simplest-drupal-iphone-app
Services implements the most common used methods for Drupal. Which are node saving/load, comments and users. If you need extra functionality, you will need to create a custom module (rather easy).
You can test all the calls with the Services tab in the Drupal website. Just remember to set the permissions.
There is also a Drupal-iOS SDK, which does almost everything I told you, but uses plist instead. https://github.com/seanhellwig/drupal-ios-sdk