I have implement remote notification in ios 8. In this notification I have two button?
1 ) When I click on End Call Then I want to send signal to other device.
2) When I click on Accept Then I want to send signal to other device.
See following screenshot for better understand
when i tap notification display following screen .
When I open Main Screen working fine.
following is my code for notification button tap buttons.
- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void (^)())completionHandler {
DoctorNotificationViewController *DoctorNoti = [[DoctorNotificationViewController alloc]initWithNibName:@"DoctorNotificationViewController" bundle:nil];
if ([identifier isEqualToString:NotificationActionOneIdent])
{
[DoctorNoti btnAcceptPressed:0];
}
else if ([identifier isEqualToString:NotificationActionTwoIdent])
{
[DoctorNoti btnRejectPressed:0];
}
[self.navcntrl pushViewController:DoctorNoti animated:YES];
}
Any help will be appreciate.