all plugins are broken - not attached to window.navigator

Bug #1554723 reported by Thomas Uher
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cordova Ubuntu
New
Undecided
Unassigned

Bug Description

Steps to reproduce the problem:

- install cordova-cli
- cordova create hello com.example.hello HelloWorld
- cd hello
- cordova platform add ubuntu
- cordova plugin add cordova-plugin-dialogs
- ondeviceready: navigator.notification.alert("test",function(){},"testitle");
- cordova run --debug --device
- the app loads but:

nothing happens

it should display a dialog.

- ondeviceready: document.getElementById("deviceready").textContent = "dialogs: " + window.navigator.notification ;

gives undefined for window.navigator.notification

Same problem occurs for cordova-plugin-device and any other plugin i have tried.

Thomas Uher (r-tom-d)
description: updated
Revision history for this message
East (east-v) wrote :

I guess I have the same problem.
navigator.compass object is always empty: { COMPASS : {} }
If I try to get property magneticHeading I get only: "Referenceerror: getmagnetic is not defined"

I use BQ Acquaris E5 HD Ubuntu Edition, Ubuntu 15.04 OTA11 for testing.

Testing app, reproducing this problem https://yadi.sk/d/hKAUI7s7s7ex9

Revision history for this message
Thomas Uher (r-tom-d) wrote :

I got it working now using David Barths presentation:
http://canonical.us3.list-manage.com/track/click?u=56dac47c206ba0f58ec25f314&id=ca89e83656&e=f0ba94f023

I tried both with and without the virtual machine and both worked.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.