문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top