[
https://issues.apache.org/jira/browse/CB-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634379#comment-13634379
]
Jack Piccininni commented on CB-3023:
-------------------------------------
04-17 14:59:11.840: W/ActivityThread(22318): Application
com.travelmidwest.travelmidwest can be debugged on port 8100...
04-17 14:59:11.860: I/CordovaLog(22318): Changing log level to DEBUG(3)
04-17 14:59:11.860: I/CordovaLog(22318): Found preference for
useBrowserHistory=true
04-17 14:59:11.860: D/CordovaLog(22318): Found preference for
useBrowserHistory=true
04-17 14:59:11.860: I/CordovaLog(22318): Found preference for
exit-on-suspend=false
04-17 14:59:11.860: D/CordovaLog(22318): Found preference for
exit-on-suspend=false
04-17 14:59:11.860: D/DroidGap(22318): DroidGap.onCreate()
04-17 14:59:11.870: D/DroidGap(22318): Setting integer properties in DroidGap
will be deprecated in 3.1 on August 2013, please use config.xml
04-17 14:59:11.910: D/JsMessageQueue(22318): Set native->JS mode to 2
04-17 14:59:11.910: D/DroidGap(22318): DroidGap.init()
04-17 14:59:11.960: D/dalvikvm(22318): GC_FOR_ALLOC freed 116K, 3% free
6106K/6275K, paused 36ms, total 36ms
04-17 14:59:11.980: I/dalvikvm-heap(22318): Grow heap (frag case) to 7.381MB
for 1440016-byte allocation
04-17 14:59:12.010: D/dalvikvm(22318): GC_FOR_ALLOC freed 1K, 3% free
7510K/7687K, paused 31ms, total 31ms
04-17 14:59:12.030: D/CordovaWebView(22318):
DroidGap.loadUrl(file:///android_asset/www/index.html, 10000)
04-17 14:59:12.030: D/DroidGap(22318): onMessage(splashscreen,show)
04-17 14:59:12.030: D/CordovaWebView(22318): >>>
loadUrl(file:///android_asset/www/index.html)
04-17 14:59:12.030: D/PluginManager(22318): init()
04-17 14:59:12.050: D/dalvikvm(22318): GC_CONCURRENT freed 5K, 2% free
7540K/7687K, paused 3ms+13ms, total 41ms
04-17 14:59:12.060: D/CordovaWebView(22318): >>> loadUrlNow()
04-17 14:59:12.060: D/DroidGap(22318): Resuming the App
04-17 14:59:12.110: D/libEGL(22318): loaded /system/lib/egl/libEGL_tegra.so
04-17 14:59:12.130: D/libEGL(22318): loaded
/system/lib/egl/libGLESv1_CM_tegra.so
04-17 14:59:12.140: D/libEGL(22318): loaded /system/lib/egl/libGLESv2_tegra.so
04-17 14:59:12.220: D/OpenGLRenderer(22318): Enabling debug mode 0
04-17 14:59:12.220: D/SoftKeyboardDetect(22318): Ignore this event
04-17 14:59:12.250: D/DroidGap(22318):
onMessage(onPageStarted,file:///android_asset/www/index.html)
04-17 14:59:12.410: D/CordovaLog(22318): onBodyLoad
04-17 14:59:12.410: I/Web Console(22318): onBodyLoad at
file:///android_asset/www/TMMobileMain.js:11
04-17 14:59:12.420: D/Cordova(22318):
onPageFinished(file:///android_asset/www/index.html)
04-17 14:59:12.420: D/Cordova(22318): Trying to fire onNativeReady
04-17 14:59:12.420: D/DroidGap(22318): onMessage(onNativeReady,null)
04-17 14:59:12.420: D/DroidGap(22318):
onMessage(onPageFinished,file:///android_asset/www/index.html)
04-17 14:59:12.490: D/CordovaNetworkManager(22318): Connection Type: wifi
04-17 14:59:12.490: D/CordovaNetworkManager(22318): Connection Type: wifi
04-17 14:59:12.490: D/DroidGap(22318): onMessage(networkconnection,wifi)
04-17 14:59:12.490: D/CordovaLog(22318): OnlineFired
04-17 14:59:12.490: I/Web Console(22318): OnlineFired at
file:///android_asset/www/TMMobileMain.js:24
04-17 14:59:12.500: D/DroidGap(22318): onMessage(spinner,stop)
04-17 14:59:12.530: D/TilesManager(22318): new EGLContext from framework:
59e922a8
04-17 14:59:12.530: D/GLWebViewState(22318): Reinit shader
04-17 14:59:12.530: D/GLWebViewState(22318): Reinit transferQueue
04-17 14:59:12.530: D/CordovaLog(22318): OnlineFired
04-17 14:59:12.540: I/Web Console(22318): OnlineFired at
file:///android_asset/www/TMMobileMain.js:24
04-17 14:59:12.540: D/CordovaLog(22318): onDeviceReady
04-17 14:59:12.540: I/Web Console(22318): onDeviceReady at
file:///android_asset/www/TMMobileMain.js:17
04-17 14:59:12.540: D/CordovaLog(22318): Initialize
04-17 14:59:12.540: I/Web Console(22318): Initialize at
file:///android_asset/www/TMMobileMain.js:40
04-17 14:59:14.430: D/DroidGap(22318): onMessage(spinner,stop)
04-17 14:59:27.530: D/CordovaLog(22318): GetCurrent Error: #1, 14:59:27
Message: Timeout expired
04-17 14:59:27.540: I/Web Console(22318): GetCurrent Error: #1, 14:59:27
Message: Timeout expired at file:///android_asset/www/TMMobileMain.js:56
04-17 14:59:32.530: D/CordovaLog(22318): Watch Error: #2, 14:59:32 Message:
Timeout expired
04-17 14:59:32.530: I/Web Console(22318): Watch Error: #2, 14:59:32 Message:
Timeout expired at file:///android_asset/www/TMMobileMain.js:70
> Geolocation API does not work on Motorola Xoom tablet (and perhaps/probably
> other devices)
> ------------------------------------------------------------------------------------------
>
> Key: CB-3023
> URL: https://issues.apache.org/jira/browse/CB-3023
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.3.0, 2.4.0, 2.5.0
> Environment: Mac OS X 10.8.3, Eclipse 4.2.1, Cordova 2.5.0, Motorola
> Xoom tablet running Android v4.1.2
> Reporter: Jack Piccininni
> Assignee: Joe Bowser
> Priority: Minor
> Labels: Geolocation, Xoom,
>
> In a nutshell: the Geolocation API does not work on the Xoom tablet. The
> "success" callback never gets called after getCurrentPosition() or
> watchPosition().
> More details... Neither the:
> - navigator.geolocation.getCurrentPosition(onSuccess, onError, { maximumAge:
> 2000, timeout: 5000, enableHighAccuracy: true }) nor
> - navigator.geolocation.watchPosition(onSuccess, onError, { maximumAge: 2000,
> timeout: 5000, enableHighAccuracy: true })
> methods result in the "onSuccess" callback being called.
> Without the optional options ("{ maximumAge: 2000, timeout: 5000,
> enableHighAccuracy: true }") included in the methods, the "onError" callback
> never (unless the default timeout is several minutes, if there is a default)
> gets called either. With the options included, it does, and the timeout error
> (error.message = "Timeout expired") is generated. Only the onError callback
> gets called, never the onSuccess callback, when running on the Xoom.
> Tested on other devices (Droid3 and iPhone) and these methods work (though
> watchPosition is slow on Droid3, another bug). Manifest and inspection of
> permissions look correct. Xoom is able to show its location using other apps
> like Google Maps.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira