PFPush(Deprecated)

@interface PFPush (Deprecated)

This category lists all methods of PFPush that are deprecated and will be removed in the near future.

  • Asynchronously send a push message to a channel.

    @deprecated Please use PFPush.+sendPushMessageToChannelInBackground:withMessage:block: instead.

    Declaration

    Objective-C

    + (void)sendPushMessageToChannelInBackground:(nonnull NSString *)channel
                                     withMessage:(nonnull NSString *)message
                                          target:(nullable id)target
                                        selector:(nullable SEL)selector;

    Parameters

    channel

    The channel to send to. The channel name must start with a letter and contain only letters, numbers, dashes, and underscores.

    message

    The message to send.

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Asynchronously send this push message and calls the given callback.

    @deprecated Please use PFPush.-sendPushInBackgroundWithTarget:selector: instead.

    Declaration

    Objective-C

    - (void)sendPushInBackgroundWithTarget:(nullable id)target
                                  selector:(nullable SEL)selector;

    Parameters

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Asynchronously send a push message with arbitrary data to a channel.

    See the guide for information about the dictionary structure.

    @deprecated Please use PFPush.+sendPushDataToChannelInBackground:withData:block: instead.

    Declaration

    Objective-C

    + (void)sendPushDataToChannelInBackground:(nonnull NSString *)channel
                                     withData:(nonnull NSDictionary *)data
                                       target:(nullable id)target
                                     selector:(nullable SEL)selector;

    Parameters

    channel

    The channel to send to. The channel name must start with a letter and contain only letters, numbers, dashes, and underscores.

    data

    The data to send.

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Asynchronously get all the channels that this device is subscribed to.

    @deprecated Please use PFPush.+getSubscribedChannelsInBackgroundWithBlock: instead.

    Declaration

    Objective-C

    + (void)getSubscribedChannelsInBackgroundWithTarget:(nonnull id)target
                                               selector:(nonnull SEL)selector;

    Parameters

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSSet *)result error:(NSError *)error. error will be nil on success and set if there was an error.

  • Asynchronously subscribes the device to a channel of push notifications and calls the given callback.

    @deprecated Please use PFPush.+subscribeToChannelInBackground:block: instead.

    Declaration

    Objective-C

    + (void)subscribeToChannelInBackground:(nonnull NSString *)channel
                                    target:(nullable id)target
                                  selector:(nullable SEL)selector;

    Parameters

    channel

    The channel to subscribe to. The channel name must start with a letter and contain only letters, numbers, dashes, and underscores.

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Asynchronously unsubscribes the device from a channel of push notifications and calls the given callback.

    @deprecated Please use PFPush.+unsubscribeFromChannelInBackground:block: instead.

    Declaration

    Objective-C

    + (void)unsubscribeFromChannelInBackground:(nonnull NSString *)channel
                                        target:(nullable id)target
                                      selector:(nullable SEL)selector;

    Parameters

    channel

    The channel to unsubscribe from.

    target

    The object to call selector on.

    selector

    The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.