PhoneGap: invoke UIImagePickerController - xcode

How can this be done with Phonegap? Is this even possible?
See this post for an image of what I'm looking for:
iPhone Camera - Choose from Library or Take Photo
EDIT:
There's a plugin for this
https://github.com/purplecabbage/phonegap-plugins/tree/master/iPhone/NativeControls

This is something I have achieved by using Sencha-Touch
See the demo here (User Interface > Overlays > Action Sheet)
See the API : http://docs.sencha.com/touch/1-1/#!/api/Ext.ActionSheet
[EDIT]
You can also use this PhoneGap plugin :
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/ActionSheet

Related

Nativescript camera take multiple pictures before returning to the app

I have a NS 4.1.3 application using TS where I use the nativescript-camera plugin to allow the user to take photos which are saved to the device's photos library.
Everything works great, however, after each photo the camera closes and the user is back at the app and if they want to take another picture they have to go through the same process.
Is there a way to open the camera, take multiple pictures and only when done return back to the app? I could not find anything on the plugin's github page.
Thank you.
you can't take multiple photos in one session using native camera api due to platform limitation. what you can do is capture camera session using AVCaptureSession for ios and CameraCaptureSession camera2 api for android and then show it to user. after that on some button click capture photo.
here is some plugins which might help you:
https://github.com/NickIliev/NativeScript-cameraApp-poc
https://www.npmjs.com/package/nativescript-camera-preview
I ended up using navivescript-camera-plus
They have done a great job exposing the Camera and Library functionality via the plugin's api.

NativeScript Webview - How to see console outputs

I'm building an app in NativeScript {N} where I'm implementing a webview.
All of this is working fine, but in my webpage, I would like to get some JS debug statements. How can I see the webview console.log output?
Previously I was able to "inspect" it through Safari, but that option is not presented in the "Develop" menu anymore.
If like me you could not figure out how to do this using the webview proivded by nativescript you'll need to install this plugin to get what you need.
https://github.com/shripalsoni04/nativescript-webview-interface
I provides a lot more features more than the stock. Basically, it allows you to emit events to the android from the webview layer. The author provides a good tutorial on this.

Xamarin Forms - Right Side Master Detail Page

I'm using the lastest version of Xamarin Forms and I'm working inside the PCL. The targeted platform is currently Android.
I would like to create a Master Detail Page on the right side of the screen. I've seen this thread where someone says to create a renderer to achieve this functionality.
Could you give me more details about how to do that?
By the way, I've also tried to use the plugin SlideOverKit, but it does not work in my project.
Thanks.
Try something like this :
Refer here for this sample and article.

Invoking a XIB from a HTML page in Phonegap

I am writing an app using PhoneGap framework. The main screen has four buttons and if I click the first button, a native app that has been written to show a Map in MapKit should execute. How to invoke this app from a javascript call?
Any thoughts?
Yes, you need to write a plugin for that feature.
For calling a external .xib you can look at some of the code from the ChildBrowser plugin.
There is also a MapKit plugin available:
you can do this by using the plugin architecture of phonegap.
Here is the wiki entry for writing phonegap plugins for iOs: http://wiki.phonegap.com/w/page/36753496/How%20to%20Create%20a%20PhoneGap%20Plugin%20for%20iOS

How do I create a mapview with titanium appcelerator mobile?

I just start to work with appcelerator and I haven't found a good layout tutorial yet.
At the moment I try to show a mapview with a specific location. Has anybody an example or a good pointer on how to do this?
Download the KitchenSink which is mentioned on the Getting Started page. It has several hundred examples on how to use the various Titanium based APIs - including MapViews.
Here's a simple example
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
animate:true,
regionFit:true,
userLocation:true
});
win.add(mapview);

Resources