mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
Clean the code of trace
This commit is contained in:
parent
85cff9a6aa
commit
2b2af02943
1 changed files with 0 additions and 29 deletions
|
|
@ -452,27 +452,12 @@
|
|||
- (void)pushRegistry:(PKPushRegistry *)registry
|
||||
didInvalidatePushTokenForType:(NSString *)type {
|
||||
LOGI(@"PushKit Token invalidated");
|
||||
[LinphoneManager.instance setPushNotificationToken:nil];
|
||||
}
|
||||
|
||||
- (void)pushRegistry:(PKPushRegistry *)registry
|
||||
didReceiveIncomingPushWithPayload:(PKPushPayload *)payload
|
||||
forType:(NSString *)type {
|
||||
LOGI(@"PushKit received with payload : %@", payload.description);
|
||||
|
||||
/*NSDictionary *payloadDict = payload.dictionaryPayload[@"aps"];
|
||||
NSString *message = payloadDict[@"alert"];
|
||||
|
||||
//present a local notifcation to visually see when we are recieving a VoIP Notification
|
||||
if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground) {
|
||||
|
||||
UILocalNotification *localNotification = [UILocalNotification new];
|
||||
localNotification.alertBody = message;
|
||||
localNotification.applicationIconBadgeNumber = 1;
|
||||
localNotification.soundName = UILocalNotificationDefaultSoundName;
|
||||
|
||||
[[UIApplication sharedApplication] presentLocalNotificationNow:localNotification];
|
||||
}*/
|
||||
|
||||
LOGI(@"incoming voip notfication: %@ ", payload.dictionaryPayload);
|
||||
dispatch_async(dispatch_get_main_queue(), ^{[self processRemoteNotification:payload.dictionaryPayload];});
|
||||
|
|
@ -484,24 +469,10 @@ didInvalidatePushTokenForType:(NSString *)type {
|
|||
LOGI(@"PushKit credentials updated");
|
||||
LOGI(@"voip token: %@", (credentials.token));
|
||||
LOGI(@"%@ : %@", NSStringFromSelector(_cmd), credentials.token);
|
||||
//[LinphoneManager.instance setPushNotificationToken:credentials.token];
|
||||
}
|
||||
|
||||
#pragma mark - User notifications
|
||||
|
||||
/*#pragma deploymate push "ignored-api-availability"
|
||||
- (void)application:(UIApplication *)application
|
||||
didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
|
||||
//register for voip notifiactions
|
||||
self.voipRegistry = [[PKPushRegistry alloc] initWithQueue:dispatch_get_main_queue()];
|
||||
|
||||
// Initiate registration.
|
||||
NSLog(@"Initiating PushKit registration");
|
||||
self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];
|
||||
self.voipRegistry.delegate = self;
|
||||
LOGI(@"%@", NSStringFromSelector(_cmd));
|
||||
}*/
|
||||
|
||||
- (void)application:(UIApplication *)application
|
||||
handleActionWithIdentifier:(NSString *)identifier
|
||||
forLocalNotification:(UILocalNotification *)notification
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue