Creating a new directory in the photo library of iPhone using PhoneGap - iphone

I am currently developing an mobile app using the PhoneGap framework. I am just wondering if there is any PhoneGap APIs or plugins that will allow us to create a new directory inside the iPhone's photo library. So every time when a user is using my app to capture a picture, I can have it saved into that directory.

From my little knowledge, currently you cant create a new directory inside the iPhone's photo library using phoneGap
However you can save an image in to iPhone's photo library.
See the below code
save image
function runImageTest(img)
{
PhoneGap.exec("ImageHelper.saveToUserLibrary",img);
}
Please see the discussions here

Related

Uploading files from iOS Files app in another app

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

Do i need to write extra code for newly added youtube video in iphone?

I am new in iPhone development. I want to create an app which will show youtube videos those i will upload in my account.
I will have admin panel in my app, from where i could control my videos. Suppose i developed the app and launched on app world.
Now after some time I want to add new videos to my account , should i need to write extra code or it will reflect automatically via used link in iphone app?
Speaking generally, you could have the application find your newest videos released in Youtube and display them in the app. Therefore, you would not need to have any more code.
There would be no code for any video within your app. Instead, have your app get the list of the videos from Youtube and play them.

Phonegap: Save a photo to a specific path

I'm using cordova framework to develop applications on iOS.
I need to save a photo (just taken) in a specific path, but cordova default sets it to localhost/var/mobile/Applications/.../tmp/cdv_photo_006.jpg while I want to save it in .../www/data/camera/cdv_photo_006.jpg
How can I fix it?
in IOS you have just just access to your app bundle(temp + document folder) at least in non-jailbreak iphone's and ipad's , so what you are doing is impossible.

Is it possible for a web based app to retrive images from an iphone?

I'm creating a website which I would like to be supported on the iphone as well. The site allows users to upload images and manipulate them. On a desktop the user will simply click the upload button to select the file from their computer and upload it to the site. But this will fail on an iphone.
Is there any way for a pure web app which is using php/mysql/js and runs inside the browser to get images from a user's camera roll? Does Apple offer any APIs to make this possible?
No, it's not possible currently - but apparently iOS 6 is going to support image and video uploads from MobileSafari.
(Apart from that, you can ask your users if their device is jailbroken and id so, suggest them downloading Safari Upload Enabler from Cydia).

iPhone: Access Camera and Album from Web app

I want to develop a web app using html5, js. One of the feature is to launch device Camera and record video, take a picture and access photo album. Is it possible to access via web app if i develop? I saw in the forums that, it is saying not possible in some places and it is possible in some places. I would like to know, is it really possible to access directly camera and album etc. ?
Please suggest!
Thank you!
It's not possible to access phone camera using Web app, as the "Web APP" typically runs in the browser of device.
Though there are some frameworks (like Phonegap) allows you to embedd your web app into native container. With this approach and added libraries from such framework you can access some of those native API's and Device Hardware.
One Possible solution is,
Create one app and distribute it using app store
using your webapp, you can connect to above app using url-scheme
http://code.google.com/p/iphone-photo-picker/
go to above link, where you can find complete code for it.