SyncSession returns nil


#1

Hi!

I’m trying to get a hold of the SyncSession (in order to receive sync notifications) this way:

let session: SyncSession? = SyncUser.current?.session(for: 
                                  Constants.syncUserRealmURL)`

The URL is probably right, as the realm is created and sync’d fine. But the session comes back nil.
Any ideas?

Thanks…!


#2

@donuts It is off the realm object - so:

let syncSession = realm.syncSession