Problem: metadata.InternetConnectivity() is always returning 0 (for Unknown), where: metadata is the pointer passed into Activate().
http://bazaar.launchpad.net/~unity-team/go-unityscopes/v2/view/head:/metadata.go#L47
Don't know if this is a golang binding, c++ scope framework, unity8, network stack, or local coding issue.
But the local code is simple:
func (tt *dbScope) Activate(result *scopes.Result, metadata *scopes.ActionMetadata) (*scopes.ActivationResponse, error) {
connStat := metadata.InternetConnectivity()
log.Printf("== dropbox photos. Activate. Conn Status: %d\n", connStat)
That ^ prints the following, even though network is up and the indicator shows it as up:
2016/01/26 20:44:54 == dropbox photos. Activate. Conn Status: 0
Problem: metadata. InternetConnect ivity() is always returning 0 (for Unknown), where: metadata is the pointer passed into Activate().
http:// bazaar. launchpad. net/~unity- team/go- unityscopes/ v2/view/ head:/metadata. go#L47
Don't know if this is a golang binding, c++ scope framework, unity8, network stack, or local coding issue.
But the local code is simple:
func (tt *dbScope) Activate(result *scopes.Result, metadata *scopes. ActionMetadata) (*scopes. ActivationRespo nse, error) {
connStat := metadata. InternetConnect ivity()
That ^ prints the following, even though network is up and the indicator shows it as up:
2016/01/26 20:44:54 == dropbox photos. Activate. Conn Status: 0