'attempt to delete row 0 from section 0 which only contains 0 rows before the update'


#1

I’ve got a small iOS sample app that I can successfully connect to my Realm Platform. I’ve created notification and subscription tokens. But when I observe the notification on the initial object being added to Realm, I see a Delete Realm Change and this crashes the app - ‘attempt to delete row 0 from section 0 which only contains 0 rows before the update’. I do not understand why there is first a Delete change before adding the data to the table view. I’ve yet to be able to determine what I’m doing wrong. Any guidance would be greatly appreciated.


#2

Issue resolved once Tomas pointed out that the wrong object was being observed in the notification. Should be propertyOwner.properties.observe and not owners.observe…