I am working with push notification and i am getting the alert for notification.In the alert i have two buttons cancel and view,when i click to view i am opening with home page but i need to open with another view rather than home view. How can i do it,can any one guide me with sample code.
I am working with push notification and i am getting the alert for notification.In the alert i have two buttons cancel and view,when i click to view i am opening with home page but i need to open with another view rather than home view. How can i do it,can any one guide me with sample code.
Thanks in Advance,
create new view and call that view in app delegate
//The user launched the application in response to the arrival of a remote notification. In this case, the dictionary contains the notification payload dictionary described in the application:didReceiveRemoteNotification: method. (Key: UIApplicationLaunchOptionsRemoteNotificationKey)
//The user launched the application in response to the arrival of a local notification. In this case, the dictionary contains the local notification. (Key: UIApplicationLaunchOptionsLocalNotificationKey)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
and maybe
Code:
//Sent to the delegate when a running application receives a remote notification.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
//The user launched the application in response to the arrival of a remote notification. In this case, the dictionary contains the notification payload dictionary described in the application:didReceiveRemoteNotification: method. (Key: UIApplicationLaunchOptionsRemoteNotificationKey)
//The user launched the application in response to the arrival of a local notification. In this case, the dictionary contains the local notification. (Key: UIApplicationLaunchOptionsLocalNotificationKey)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
and maybe
Code:
//Sent to the delegate when a running application receives a remote notification.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
no, the anwers are not the same, it's what I like that you understand.
Your answer contain inexact\incomplete terms that are completely useless for a beginner, because if he already know how to use "app delegate" (note that in this context is incorrect calling it in this mode) would not asked here.
I'm not "best than you", I believe just that an answer should be BEST than your
just take your last 10-50 posts and see how many times a user understand your cryptic\useless\general\imprecise answer at the first read.....
Your answer contain inexact\uncomplete terms that are completely useless for a beginner, because if he already know how use "app delegate" (note that in this context is incorrect calling it in this mode) would not asked here.
This can be acceptable...............
Quote:
just take your last 10 posts and see how many times a user understand your cryptic\useless\general\imprecise answer at the first read.....
about this your are saying lot of things ...........
no, the anwers are not the same, it's what I like that you understand.
Your answer contain inexact\incomplete terms that are completely useless for a beginner, because if he already know how to use "app delegate" (note that in this context is incorrect calling it in this mode) would not asked here.
I'm not "best than you", I believe just that an answer should be BEST than your
just take your last 10-50 posts and see how many times a user understand your cryptic\useless\general\imprecise answer at the first read.....
when i launch the application at first and i receive the notification and click on to view option it is not invoking the