mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
29 lines
645 B
Objective-C
29 lines
645 B
Objective-C
//
|
|
// NotificationViewController.m
|
|
// richNotifications
|
|
//
|
|
// Created by David Idmansour on 22/06/2018.
|
|
//
|
|
|
|
#import "NotificationViewController.h"
|
|
#import <UserNotifications/UserNotifications.h>
|
|
#import <UserNotificationsUI/UserNotificationsUI.h>
|
|
|
|
@interface NotificationViewController () <UNNotificationContentExtension>
|
|
|
|
@property IBOutlet UILabel *label;
|
|
|
|
@end
|
|
|
|
@implementation NotificationViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any required interface initialization here.
|
|
}
|
|
|
|
- (void)didReceiveNotification:(UNNotification *)notification {
|
|
self.label.text = notification.request.content.body;
|
|
}
|
|
|
|
@end
|