SubscriptionHandling handleEvents not being invoked for _User table
developer-- opened this issue · 2 comments
developer-- commented
I'm trying to subscribe changes in _User table, but when I'm changing somethings in _User table handleEvents not invoked,here is how I'm doing that:
private var parseLiveQueryClient: ParseLiveQueryClient? = ParseLiveQueryClient.Factory.getClient()
private var subscriptionHandling: SubscriptionHandling<ParseUser>? = null
private val livePointQuery = ParseUser.getQuery()`
init {
subscriptionHandling = parseLiveQueryClient?.subscribe(livePointQuery)
subscriptionHandling?.handleSubscribe {
if (it != null){
Log.e("LIVE_QUERY","success") // invoked successfully
}else{
Log.e("LIVE_QUERY","null")
}
subscriptionHandling?.handleEvents { _, event, parseUser ->
Log.e("LIVE_QUERY_EVENT","${event.name}")
if(parseUser != null){
Log.e("LIVE_QUERY",parseUser.objectId)
}else{
Log.e("LIVE_QUERY","user null")
}
}
}
}
P.S, I'm successfully subscribing other table data updates
developer-- commented
Solved! The problem were not in client side code, that was on server side configuration, _User class didn't have LiveQuery enabled, after enabling I got updates:)
mmimeault commented
Awesome, thanks for the update