Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top