This is a migrated thread and some comments may be shown as answers.

Problem with camera and GPS

9 Answers 108 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Audrey
Top achievements
Rank 1
Audrey asked on 28 Mar 2013, 03:36 PM
Hello,
In m app I use :
GPS = navigator.geolocation.getCurrentPosition;
Album = navigator.camera.PictureSourceType;
Photo = navigator.camera.DestinationType;

I have few problems :

On iOS :
When I click on GPS or photo or album, I need to lock and unlock my device to start the service I want

On Android : photo and album work fine, but te GPS doesn't : it stays locked on "navigator.geolocation.getCurrentPosition(onSuccess, onError);" without continue toward the onSuccess or the onError... It just stops there...

Any idea for my issues ?

9 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Mar 2013, 04:58 PM
Hello Audrey,

The provided information is insufficient to determine what is wrong in your setup. Our suggestion is to review our sample applications that show how to utilize the GPS and Camera:

and compare it to your implementation. If you are able to reproduce the problem with our samples, we would appreciate if you share what devices and OS do you test on.

Regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Audrey
Top achievements
Rank 1
answered on 29 Mar 2013, 08:10 AM
Hello, about the camera, your code works fine on iOS but mine worked fine until few days ago...
I'll try to mix the both.
All of those problems appeared recently...

Here's muy code bellow :
http://sd-1.archive-host.com/membres/up/34297498454982717/ModulePhoto.txt

And still the same problem with GPS and camera : I nedd to lock unlock the iPhone to display the camera or the GPS result...

About the Android, the GPS bug seems to appear only with my device (Samsung GT-N7000).. Not with other android (GT-I9300)
0
Audrey
Top achievements
Rank 1
answered on 29 Mar 2013, 01:15 PM
Hi, hmm no problems anymore, all works fine now, I think problems were woming from the update of Icenium
0
Steve
Telerik team
answered on 29 Mar 2013, 01:19 PM
Hello Audrey,

We haven't introduced any breaking changes in our latest release. If you can share what you have changed to get your project to work again, this might be helpful to other community members, should they encounter such problems.

Greetings,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Audrey
Top achievements
Rank 1
answered on 29 Mar 2013, 02:24 PM
The thing is that I didn't change anything !!! It works again by itself...
0
Сергей
Top achievements
Rank 1
answered on 27 Nov 2013, 06:31 PM
I have same problem. GPS doesn't work on the real tablet PC. I tried to launch sample-geolocation application it's doesn't work too. 
Tablet PC: Huawei, OS Android 4.0.3
0
Steve
Telerik team
answered on 28 Nov 2013, 03:37 PM
Hello Сергей,

Android devices require the GPS to have locked to a satellite in order for the geolocation to work. This is not the case for iOS devices where it works without being connected to satellite.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Сергей
Top achievements
Rank 1
answered on 29 Nov 2013, 04:42 AM
Thanks a lot!
Your advise was useful. When I brought the tablet PC closer to window and waited a few time GPS started work. But how google maps get geo position just after launch and inside building?
0
Steve
Telerik team
answered on 29 Nov 2013, 08:53 AM
Hello Сергей,

If you deploy our Kendo UI Mobile template on Android device and go to the Location tab, you would notice exactly the same behavior, namely if you're not connected to GPS sattelite google maps would not be able to get your position.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
General Discussion
Asked by
Audrey
Top achievements
Rank 1
Answers by
Steve
Telerik team
Audrey
Top achievements
Rank 1
Сергей
Top achievements
Rank 1
Share this question
or