Realm-cocoa: Feature Request: Commit without Notification with No Token Required

Created on 8 May 2018  路  2Comments  路  Source: realm/realm-cocoa

At present, you can do a Realm write and forego the notification like this:

let realm = try! Realm()
realm.beginWrite()
//...
try! realm.commitWrite(withoutNotifying: [token])

But for any moderately complex app, it can be a real pain to keep track of your token (especially if you have several of them). It'd be nice to just be able to say, _"Don't notify anything, anywhere."_

Something like this:

//...
try! realm.commitWrite(sendNotification: false)

...and it simply wouldn't create a notification anywhere.

Thanks! :)

O-Community T-Enhancement

Most helpful comment

Up

All 2 comments

That's really better, than send token through over the app.

Up

Was this page helpful?
0 / 5 - 0 ratings