RLMPushClient
Objective-C
@interface RLMPushClient : NSObject
Swift
@_nonSendable(_assumed) class RLMPushClient : NSObject, @unchecked Sendable
A client which can be used to register devices with the server to receive push notificatons
-
The push notification service name the device will be registered with on the server
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *serviceName;
Swift
var serviceName: String { get }
-
Request to register device token to the server
Declaration
Objective-C
- (void)registerDeviceWithToken:(nonnull NSString *)token user:(nonnull RLMUser *)user completion:(nonnull RLMOptionalErrorBlock)completion;
Swift
func registerDevice(token: String, user: RLMUser) async throws
-
Request to deregister a device for a user
Declaration
Objective-C
- (void)deregisterDeviceForUser:(nonnull RLMUser *)user completion:(nonnull RLMOptionalErrorBlock)completion;
Swift
func deregisterDevice(user: RLMUser) async throws