Message-ID: <169829677.453.1402585164550.JavaMail.confluence@centos6.5-prod> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_452_1025517557.1402585164548" ------=_Part_452_1025517557.1402585164548 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Go to your AppDelegate.m file and add this import at the top of the = file:
1
|
#import "PushApps.h"
|
Still in the AppDelegate.m file, add those line before the @end= word:
1
2
3
4
5
6
7
8
9
10
11
12
|
#pragma mark - Push Notifications
- (
void
)application:(UIApplication *)application didRegi=
sterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
// Notify PushApps of a successful registratio=
n.
[[PushAppsManager sharedInstance] upd=
atePushToken:deviceToken];
}
// Gets called when a remote notification is r=
eceived while app is in the foreground.
- (
void
)application:(UIApplication *)application didRece=
iveRemoteNotification:(NSDictionary *)userInfo
{
[[PushAppsManager sharedInstance] handlePushMessageOnForeground:userInfo];
}
|