- This topic has 33 replies, 4 voices, and was last updated 11 years, 4 months ago by support-aleksey.
-
AuthorPosts
-
YannMemberHello
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 bynavigator.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
YannMemberHello 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
support-octavioMemberCould you share a sample project that demostrate the issue? This will help us to better understand and isolate the problem for investigation.
YannMemberHello Octavio
in attached a example of my problems
Thanks
YannEdit:@ Octavio
i tried to place showcontact() function in ondeviceready() functionfunction ondeviceready() { showcontact=function() { ... } }
with the same result.
The app crash and quit.
if you want i can send you apk file by email?
thanks
YannAttachments:
You must be logged in to view attached files.
support-octavioMemberHi 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.
YannMemberHello Octavio
i sent my complete project by email to support(at)genuitec.com
with the same object
Thanks
Yann
YannMemberHello Octavio
some news about this bug ?
thanks
Yann
YannMemberHello support,
about my watchPosition problem with android :
i tried to increase timeout value i’ve the same errornavigator.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
support-octavioMemberHi Yann,
These problem reports are being investigated now by the dev team, will follow up with you as soon as I get more information.
YannMemberHi Octavio
ok thanks
Yann
support-alekseyMemberPlease, make sure you have requested corresponding permissions (to read contacts and access geolocation) on ‘Service & Permissions’ build wizard page.
YannMemberHello 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
support-alekseyMemberHello 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.
YannMemberHello 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
YannAttachments:
You must be logged in to view attached files.
support-octavioMemberHi 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.
-
AuthorPosts