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 (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, completion: @escaping RLMOptionalErrorBlock)
-
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, completion: @escaping RLMOptionalErrorBlock)