RLMPushClient
@interface RLMPushClient : NSObject
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 (readonly, nonatomic, nonnull) NSString *serviceName;
-
Request to register device token to the server
Declaration
Objective-C
- (void)registerDeviceWithToken:(nonnull NSString *)token user:(nonnull RLMUser *)user completion:(nonnull RLMOptionalErrorBlock)completion;
-
Request to deregister a device for a user
Declaration
Objective-C
- (void)deregisterDeviceForUser:(nonnull RLMUser *)user completion:(nonnull RLMOptionalErrorBlock)completion;