Permissions for using camera IOS

Forum to discuss the new web client version of Servoy.

Permissions for using camera IOS

Postby Thomas.shuttleworth » Fri Jun 09, 2017 2:02 pm

Hi,

I'm using the Phonegap plugin to take a picture and/or to get a picture from the camera roll and display it, in a similar fashion to the svyMobile demo. I've got the app running on my iPhone through Safari but haven't had any luck getting the camera to work. I imagine the problem is with my permissions and so I was wondering if anyone has a way to request camera permissions from within my application.

Thanks
Thomas.shuttleworth
 
Posts: 24
Joined: Wed Apr 05, 2017 5:08 pm

Re: Permissions for using camera IOS

Postby ProRM » Sun Jun 11, 2017 11:52 pm

Hi Thomas,

Did you generated the app with Phonegap Build? I think you need to include the URL of your Servoy app in an iframe in an index.html and also a config.xml file where you say Phonegap what mobile services you will use from your app. At least that´s what we did, based on the Demo Patrick did at SW2015.
Just running a web app in the mobile will not give you access to the native hardware.

Regards,
User avatar
ProRM
 
Posts: 107
Joined: Thu Sep 18, 2008 10:24 pm
Location: Uruguay

Re: Permissions for using camera IOS

Postby Thomas.shuttleworth » Mon Jun 12, 2017 10:20 am

Hi Juan,

I hadn't started the app with Phonegap Build, i'll take a look at that now, I'd heard somewhere about the config.xml, that's where I include the permissions, if i'm not mistaken.

Thanks for your help

Thomas
Thomas.shuttleworth
 
Posts: 24
Joined: Wed Apr 05, 2017 5:08 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 24 guests

cron