MFPush Class Reference

Inherits from NSObject
Declared in MFPush.h
MFPush.m

Overview

MFPush is a class that used to handle push notification.

+ handlePush:

A default handler for push notifications while the app is active that could be used to mimic the behavior of iOS push notifications while the app is backgrounded or not running.

+ (void)handlePush:(nullable NSDictionary *)userInfo

Parameters

userInfo

The userInfo dictionary you get in appplication:didReceiveRemoteNotification:.

Discussion

Call this from application:didReceiveRemoteNotification:. If push has a dictionary containing loc-key and loc-args in the alert, we support up to 10 items in loc-args (NSRangeException if limit exceeded).

Warning: This method is available only on iOS.

Declared In

MFPush.h