Problem with camera and GPS

10 posts, 0 answers
  1. Audrey
    Audrey avatar
    52 posts
    Member since:
    Jan 2013

    Posted 28 Mar 2013 Link to this post

    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 ?

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 28 Mar 2013 Link to this post

    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.
  3. Audrey
    Audrey avatar
    52 posts
    Member since:
    Jan 2013

    Posted 29 Mar 2013 Link to this post

    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)
  4. Audrey
    Audrey avatar
    52 posts
    Member since:
    Jan 2013

    Posted 29 Mar 2013 Link to this post

    Hi, hmm no problems anymore, all works fine now, I think problems were woming from the update of Icenium
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 29 Mar 2013 Link to this post

    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.
  6. Audrey
    Audrey avatar
    52 posts
    Member since:
    Jan 2013

    Posted 29 Mar 2013 Link to this post

    The thing is that I didn't change anything !!! It works again by itself...
  7. Сергей
    Сергей avatar
    2 posts
    Member since:
    Nov 2013

    Posted 27 Nov 2013 Link to this post

    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
  8. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 28 Nov 2013 Link to this post

    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.
  9. Сергей
    Сергей avatar
    2 posts
    Member since:
    Nov 2013

    Posted 28 Nov 2013 Link to this post

    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?
  10. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 29 Nov 2013 Link to this post

    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.
Back to Top