Domanda

I am currently sending following luna-send command to detect sms database change:

luna-send -n 2 -a my_app luna://com.palm.db/find '{"query":{"from":"com.palm.smsmessage:1",
"where":[{"prop":"folder","op":"=","val":"inbox}]},"watch":true

The first response returns the existing database data and the second one is delivered when the database is changed.

This works fine, but when I convert this to code for my enyo app, my callback method is not called for the second response. I am using enyo.bind(this, my_callbackmethod). It seems like my callback method is only called once.

Is there any way to get the second response using callback method?

È stato utile?

Soluzione

Hmm, not sure I've ever used watch. What if you use subscribe: true?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top