HTML5 PositionError
The PositionError is reflecting the reason for the failure.
Learning Resources:
| Sample - Using HTML5 Geolocation Sample that demonstrates how to use the HTML5 Geolocation API [BlackBerry Developer Resource Center]. |
| How To - Enable GPS on PlayBook How to enable GPS capability when using the BlackBerry WebWorks SDK for Tablet OS [BlackBerry Developer Resource Center]. |
Supported Platform(s)
| - BlackBerry OS 5.0+ |
| - BlackBerry PlayBook 1.0+ |
| - BlackBerry 10 |
| - Ripple Emulator |
| API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
|---|---|---|---|---|---|---|---|
| code | Y | Y | Y | Y | Y | Y | Y |
| message | Y | Y | Y | Y | Y | Y | Y |
| PERMISSION_DENIED | Y | Y | Y | Y | Y | Y | Y |
| POSITION_UNAVAILABLE | Y | Y | Y | Y | Y | Y | Y |
| TIMEOUT | Y | Y | Y | Y | Y | Y | Y |
Configuration Document Settings
|
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
| This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
| Permission Elements (PlayBook and BlackBerry 10+) |
|---|
| This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Properties
Number
code
Error code. One of the PERMISSION_DENIED, POSITION_UNAVAILABLE or TIMEOUT
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
Constants
static
Number
PERMISSION_DENIED
= 1
The location acquisition process failed because the document does not have permission to use the Geolocation API.
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:42 GMT-0500 (EST)