I registered for push and local notifications using two action buttons: action1 and action2. Upon receiving the notification, I can see both of them, and also take measures depending on the identifier of the action. However, one of my use cases requires that I hide one or both action buttons before planning a local notification. Can I do this at runtime?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
In this method, I register for notifications using two action buttons.
I see that depending on the context, we can define a variable number of action buttons. However, the context is predefined and not defined by the user.
source share