facebook

Nativ app IOS ok -> Android crash

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 15 posts - 1 through 15 (of 34 total)
  • Author
    Posts
  • #336755 Reply

    Yann
    Member

    Hello
    i build for test my app on Android, i test it on Samsung galaxy tab 8.9 Android version 4.0.4.
    At first installation my app run as well (geolocation) , when i try to access to contact by

     navigator.contacts.find(fields, onContactSuccess, onContactError, options);

    Android app crash.
    And after reloading app, geolocation return time out error
    have you an idea of this problem?
    Same app run as well on iphone, ipad under IOS 6.1 (also native app)
    Thanks
    Yann

    #336777 Reply

    Yann
    Member

    Hello support
    i found this about my problem of crash
    https://issues.apache.org/jira/browse/CB-1969
    what do you think?

    i have also another problem on the same tablet

        var watchId = navigator.geolocation.watchPosition(successSpeed,
                                      errorSpeed,
                                      {enableHighAccuracy:true,
                                      timeout:10000,
                                      maximumAge:0});

    return alway a timeout expired
    my function is in addEventListener deviceready
    any idea?
    thanks
    Yann

    #336792 Reply

    @Yann,

    Could you share a sample project that demostrate the issue? This will help us to better understand and isolate the problem for investigation.

    #336795 Reply

    Yann
    Member

    Hello Octavio
    in attached a example of my problems
    Thanks
    Yann

    Edit:@ Octavio
    i tried to place showcontact() function in ondeviceready() function

    function ondeviceready()
    {
    showcontact=function()
    {
    ...
    }
    }

    with the same result.
    The app crash and quit.
    if you want i can send you apk file by email?
    thanks
    Yann

    Attachments:
    You must be logged in to view attached files.
    #336800 Reply

    Hi Yann,

    I’ve opened a bug for this issue. Feel free to send us your whole project (including .mobi files) and we will investigate it if we can’t find the problem in the example.

    #336801 Reply

    Yann
    Member

    Hello Octavio
    i sent my complete project by email to support(at)genuitec.com
    with the same object
    Thanks
    Yann

    #337700 Reply

    Yann
    Member

    Hello Octavio
    some news about this bug ?
    thanks
    Yann

    #337776 Reply

    Yann
    Member

    Hello support,
    about my watchPosition problem with android :
    i tried to increase timeout value i’ve the same error

    navigator.geolocation.watchPosition(successSpeed,
                                      errorSpeed,
                                      {enableHighAccuracy:true,
                                      timeout:20000,
                                      maximumAge:0});

    Error: TimeOut expired

    How i can verify persmissions in AndroidManifest ?
    i don’t understand why i have this error on Android but not with Ios.

    About my crash problem under Android when i call this function

    var options = new ContactFindOptions();
        options.multiple  = true; 
        var fields = ["displayName","emails"];
        navigator.contacts.find(fields, onContactSuccess, onContactError, options);

    Android app quit when i call this function, i tried to place a timer like i do for multiple alert without success.
    i don’t found solution.
    Can you help me , I’m waiting for the correction of these problems to publish
    thanks a lot.
    Yann

    #337842 Reply

    Hi Yann,

    These problem reports are being investigated now by the dev team, will follow up with you as soon as I get more information.

    #337870 Reply

    Yann
    Member

    Hi Octavio
    ok thanks
    Yann

    #338105 Reply

    Please, make sure you have requested corresponding permissions (to read contacts and access geolocation) on ‘Service & Permissions’ build wizard page.

    #338106 Reply

    Yann
    Member

    Hello aleksey
    yes i do, access to contact and geo-localization are enables
    but even if there is no authorization does not explain why the application crash and quit.
    Thanks
    Yann

    #338159 Reply

    Hello Yann,

    can you please confirm that find/watchLocation calls are working now, after setting correct permissions?

    This behavior is default for Cordova apps. Since permissions are “wired” into installation package file, i.e. it is impossible to change them after app is built, there is no much sense in handling such conditions. Thus app just fails.

    #338175 Reply

    Yann
    Member

    Hello Aleksey.

    no, Geo-localization return a time out error and when i click on my contact button then app crash and quit

    EDIT: i build an small example in attached file.
    Thanks
    Yann

    Attachments:
    You must be logged in to view attached files.
    #338207 Reply

    Hi Yann,

    We have tested and both contacts and watchpostion issues appear to be fixed in an upcoming version of cordova 2.6 that we are testing internally now. We hope to make it available in an early-access version of mobione 2.4 shortly after the mobione 2.3.2 maintenance release planned for early next week.

Viewing 15 posts - 1 through 15 (of 34 total)
Reply To: Nativ app IOS ok -> Android crash

You must be logged in to post in the forum log in