ios - Launch app on specific view controller using iOS8 actionable notifications -


I have a functional information setup on my app with the YES button. Is it possible when the notification is triggered? And to move you to an application on a specific view controller, click on the button, not the initial view.

Yes you use this new method of iOS8 using the handleActionWithIdentifier You can. Whenever you press the action button, this delegate will call.

  1. Representative for local notifications : Local notification when your app is activated by the user

      - ( Zero) Application: (UIApplication *) Application Handle ActionWidth Identifier: Local Notification (NSString *) Identifier: (UILocalNotification *) Notification Complete Handler: (Zero (^) ()) Full Handler    
  2. Representative for Remote Notification : When your app provides remote notices by the user Application: (UIApplication *) Application Handle ActionWidth Identifier: (NSString *) for identifier. Remote notification: (NSDictionary *) userInfo completionHandler: (Zero (^) ()) Finishing Handler < / Code>

    Note: As soon as you complete the operation, you should call the full operator.

    Then you can use your rootViewController and then redirect to another view controller.

      - (UIViewController *) GetTopViewController {AppDelegate * appDelegate = (AppDelegate *) [[UIApplication shared application] representative]; UIViewController * RootviewConverter = appDelegate.window.rootViewController; If ([RootviewControllerHyndoffClass: [UIOVisionController Class]]) {UINavigationController * rvc = (UINavigationController *) RootviewController; RootViewController = rvc.visibleViewController; } Return Root View Controller; }   

    Other related

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -