I see different  network connectivity state reported from Search() and
from these: Activate(), Preview() and PerformAction().

I've written a simple golang scope [1] that shows the differences.

The scope has one result with SetInterceptAction(), so it goes to
Activate, then it goes to Preview() where there is one button that runs
PerformAction().

In each method I show the connection state as returned from the metadata
passed into search AND that passed into the current method.

Here is the (commented) scope-registry.log: (value of 0 is unknown, 1 is
connected, 2 is disconnected)

#WITH NETWORK

2016/01/28 22:43:37 =========  METATDATA TEST  Search() 
================================
2016/01/28 22:43:37 === Search(): Search's metadata.InternetConnectivity(): 1
# HERE I TAP THE RESULT WHICH RUNS Activate()
2016/01/28 22:43:42 === Activate(): Search's metadata.InternetConnectivity(): 1
2016/01/28 22:43:42 === Activate(): local's metadata.InternetConnectivity(): 0
2016/01/28 22:43:42 === Preview(): Search's metadata.InternetConnectivity(): 1
2016/01/28 22:43:42 === Preview(): local's metadata.InternetConnectivity(): 0
#HERE I TAP THE BUTTON WICH RUNS PerformAction()
2016/01/28 22:43:44 === PerformAction(): Search's 
metadata.InternetConnectivity(): 1
2016/01/28 22:43:44 === PerformAction(): local's 
metadata.InternetConnectivity(): 0

#WITH NO NETWORK (FLIGHT MODE ON) & REFRESHED SCOPE:

2016/01/28 22:44:36 =========  METATDATA TEST  Search() 
================================
2016/01/28 22:44:36 === Search(): Search's metadata.InternetConnectivity(): 2
2016/01/28 22:44:40 === Activate(): Search's metadata.InternetConnectivity(): 2
2016/01/28 22:44:40 === Activate(): local's metadata.InternetConnectivity(): 0
2016/01/28 22:44:40 === Preview(): Search's metadata.InternetConnectivity(): 2
2016/01/28 22:44:40 === Preview(): local's metadata.InternetConnectivity(): 0
2016/01/28 22:44:42 === PerformAction(): Search's 
metadata.InternetConnectivity(): 2
2016/01/28 22:44:42 === PerformAction(): local's 
metadata.InternetConnectivity(): 0

[1]  
lp:~knitzsche/+junk/metadatatest

scope attached

** Attachment added: "dropbox.testmetatadata_0.3.6_armhf.click"
   
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1502282/+attachment/4558671/+files/dropbox.testmetatadata_0.3.6_armhf.click

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1502282

Title:
  "unknown" connectivity status problematic

To manage notifications about this bug go to:
https://bugs.launchpad.net/savilerow/+bug/1502282/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to