Yes, of course, it is possible. But you cannot send large amounts of content using push notifications. V Push notification can contain no more than 256 bytes.
, userInfo , . , , , .
,
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSDictionary *remoteNotif = [launchOptions objectForKey: UIApplicationLaunchOptionsRemoteNotificationKey];
if (remoteNotif) {
}
return YES;
}
, :
- (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
}
NSDictionary , .
-
Userinfo push- - JSON, .
{
"aps" : {
"alert" : "You got your emails.",
"badge" : 9,
"sound" : "bingbong.aiff"
},
"acme1" : "bar",
"acme2" : 42
}
Apple, aps JSON , 9 " ". . bingbong.aiff, .
amce1 amce2 , , push-.