So I have this iPhone app, working a lot with my webserver (PHP) and getting data from there, mostly HTML content. In this app you can see a list of events (with date, hour etc). Now my users asked me if they could include it to their native iPhone calendar.
Is that possible, and if yes, how?
Do I need to update my application for that or is it possible to generate a file at the server side which the users simply can download? I kinda hoped I could do it that way.
Try using the EventKit framework: http://developer.apple.com/library/ios/#documentation/EventKit/Reference/EventKitFrameworkRef/_index.htmlLike explained here: Programmatically add custom event in the iPhone Calendar
Related
I'm looking to add functionality to my app that would allow a user to upload a file within my app from the Files app that was introduced in iOS 11. I would expect that it would work the same way that existing components do now where you can select Upload a Photo or Video on your iOS device and it allows you to select items from within the Photos app. I have been searching and I have not been able to figure out a way to do this. I know Apple's Mail app has this functionality (under "Add Attachment"), but I have not found a way to surface this functionality in my own app.
Since I am using Eureka for my other row inputs, it would be ideal to have this in an Eureka component but right now I am just trying to figure out if it is even possible to select files from the Files app from another app with Apple's existing APIs.
The Framework you are looking for is built in to UIKit in a class called UIDocumentPickerViewController
I tried a bit of research, but I don't seem to be getting anywhere.
Is it possible to access the calendar on iPad/iPhone iOS5 from a web app?
My goal would be adding an event to it, is that achievable? Opening a filestream is an option, in case this helps.
Thank you
That's not available through a web app. The only thing you can do is include a date in the text within the web app. iOS will detect it as an event (if formatted correctly) and will give the user an option to create a calendar event when clicked.
Here on this SO question, the OP mentions he had no problems in adding a calendar event on iOS by means of an iCal file created on the fly.
I want to create or use an open source php calendar as a webservice. This is just one feature of an entire app idea of mine, but I'm working on the app in steps and would like to start with a calendar. Is there a way to use a php calendar to update an iphone apps calendar? Example, I want to be able to add an appointment within the iphone app and have it update on the php calendar on my website? I want syncronization both ways. If I decide to add an event on the calendar through the website, I would like it to update in the iphone app.
For the maximum amount of customization I would go the route of writing your own calendar in PHP. Then you can make the calendar work exactly how you want and it can work seamlessly with your App. This shouldnt be too difficult as for a class project I had to right a simple PHP Calendar (it didnt have web services but still). Ray Wenderlich discusses several ways of using web services in iOS apps, and even has an example based on PHP/MySQL.
How To Write A Simple PHP/MySQL Web Service for an iOS App
How
To Write An iOS App That Uses A Web Service
I am writing an app for iphone to go along site my website which tracks the location of the user. Can anyone give me any pointers on where to begin. I am very good with mysql and php etc but I am a novice with iphone apps.
The coordinates from the app need to be able to upload to my api which I have set up.
Thanks
What you probably want to do is create a simple app that can run in the background.
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html
During background execution you cannot do anything really too much with the network so I suggest logging it using CoreData and then on resume/startup to send an HTTP post to a PHP page that logs it into your DB?
You might want to check out the HTML5 geolocation API. Also reading "Building iPhone Apps with HTML, CSS, and JavaScript" is recommended. I read the same book for Android and was very pleased. Building your app in HTML5/CSS/JS will also mean that it will probably work on other platforms.
I want to create a community for my venture and also an iphone application for the same. I am thinking of using Buddypress for the community.
But is it possible to use buddypress with an iPhone app? I'd like that when user posts a message via the iPhone app, it is also posted on buddypress? Or do I have to write custom scripts for editing the buddypress db according to user actions in the iPhone app?
Thanks.
I remember reading about a plugin for BuddyPress, called BPDEV XMLRPC that allows you to communicate with BuddyPress via XMLRPC. I'm not sure if it's out of the development trunk yet, but it seems like you could use that to post messages to BuddyPress from an iPhone app. bp-dev.org seems to be down at the moment, but I read about it there.
It's entirely possible to do -- but will require some heavy development work. Would have to modify heavily a child theme and do lots of stuff to make it work. Let me know if you find anything that works.