Bug #943

navigator.service is undefined in Testr, Memos, Clock, Calculator, Tweaks & Calendar

Added by Doug Reeder about 4 years ago. Updated about 4 years ago.

Status:Closed Start date:06/06/2015
Priority:Normal Due date:
Assignee:- % Done:

100% Total progress

Category:System Services
Target version:Crema


To reproduce:
1) Run Testr
2) Select Geolocation secition
3) Tap "PalmBus (prov.) getCurrentPosition". Note lack of responses
4) Check log. Observe error: TypeError: undefined is not an object (evaluating 'navigator.service.request')

The tests in Subscriptions fail similarly.

Memos fails to save the text of memos.

Same on both Nexus 4 and TouchPad

Issue Hierarchy ()


Updated by Doug Reeder about 4 years ago

The log here is the JS log:
run 'adb forward' and use Safari (or Chrome) to connect to localhost:1122

Updated by Nikolay Nizov about 4 years ago

I was able to receive location position using this diff:

diff --git a/deploy.json b/deploy.json
index 510b49e..892099d 100644
--- a/deploy.json
+++ b/deploy.json
@ -11,6 +11,9 @
"libs": [
- "./lib/layout"
+ "./lib/layout",
+ "./lib/more-arrangers",
+ "./lib/enyo-webos",
+ "./lib/webos-lib"
\ No newline at end of file

Updated by Doug Reeder about 4 years ago

Nizovn's patch ( fixes Testr. (navigator.service is actually defined by the enyo-webos lib, which was mistakenly left out of deploy.json, when it was added.)

None of the other listed apps currently uses enyo-webos (and, indeed, they do not suffer from navigator.service being undefined) so they do not need to be patched.

Updated by Herman van Hazendonk about 4 years ago

  • Target version set to Crema
  • % Done changed from 0 to 100
  • Status changed from New to Closed

Sorted as per above. Verified other apps and they're OK.

Also available in: Atom PDF