Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Camera to Database.

Hello!
1) "//run your code here" means call your service to retrieve new data http://docs.appery.io/documentation/u...
2) "older operating systems running the app in a browser seem to fail at login" - there is a problem in android 2.x native browser - requests to DB don't work on in Android 2.x native browser, this is Android issue, but we're searching for workaround.
3) "call on the native camera service in the safari browser" - to work with camera you have to compile .ipa file and install app on device
4) "on iOS7 the pictures do not list horizontally as they should" - iOS7 is not supported yet, but we're working on it. Try to use CSS.

Joe6207668
Posts: 0
Joined: Wed Sep 04, 2013 6:24 pm

Camera to Database.

Hey Maryna,

Thanks for the detailed response!

Regarding "to work with camera you have to compile .ipa file and install app on device" - are you familiar with getUserMedia using html5?

For cross platform use:

window.URL = window.URL window.webkitURL;
navigator.getUserMedia = navigator.getUserMedia navigator.webkitGetUserMedia
navigator.mozGetUserMedia navigator.msGetUserMedia;

var video = document.querySelector('video');

if (navigator.getUserMedia) {
navigator.getUserMedia({audio: true, video: true}, function(stream) {
video.src = window.URL.createObjectURL(stream);
}, onFailSoHard);
} else {
video.src = 'somevideo.webm'; // fallback.
}

I would like to point the appery database IP address to my domain name and utilize a mobile web app until I can get approved in the App store, but I want to use native features including camera and geolocation.

Let me know what you think!

Thanks again for all the help, greatly appreciated!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Camera to Database.

Hi Joe,

Mobile standard mobile browser don't support getUserMedia(), though take a look at the Capture API. http://docs.phonegap.com/en/2.5.0/cor...

As for the domain, do you mean this?http://docs.appery.io/documentation/p...

Joe6207668
Posts: 0
Joined: Wed Sep 04, 2013 6:24 pm

Camera to Database.

Hey Katya,

I'll take a look at the phonegap API.

And yes I as for the domain that is what I was referencing.

Thanks!

jbkarnes@hotmail.com
Posts: 0
Joined: Thu Jan 02, 2014 9:10 am

Camera to Database.

2) Create service camera_shot for CameraService
Map Response:

  • imageDataBase64 to Asset property "photopreview" component

  • imageDataBase64 to new localStorage variable "photo_buffer"

    and

  • Name to photoname_label.Text
    under 4)

    Could you elaborate a little. Didn't create a service called CameraService -

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Camera to Database.

"CameraService" - I believe it's mobilecamera1 service from 1) ... "add Camera device service -- mobilecamera1" ...
"photoname_label" - it's label created in step 1) ... "add Label to the last list item --photoname_label " ...

jbkarnes@hotmail.com
Posts: 0
Joined: Thu Jan 02, 2014 9:10 am

Camera to Database.

Got it. should read Create Device named camera_shot for mobilecamera1. and mobilecamera1 is a camera service.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Camera to Database.

Let us know if you need any help.

CarmeloMilian
Posts: 0
Joined: Sat Apr 06, 2013 4:01 am

Camera to Database.

Once this photo is saved to the database, Can I get a record and display the image in the record results?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Camera to Database.

Hi Carmelo,

Here is how to get a file from Database:
http://docs.appery.io/documentation/b...

Return to “Issues”