Search code examples
objective-cxcodepush-notificationapple-push-notificationsxcode12

Opening notification on specific index


I have an app with multiple folders. One of the folders is set with a location reminder. When I enter the region I get a notification alert. Up to this, it's working well. Now when I tap the notification the App opens but I want to open the specific folder that triggers on entering the region. How can I implement this to work?

Should I use the notification delegate method?

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler API_AVAILABLE(ios(7.0));

If so should I get a new certificate with Push notification enabled? Please suggest me with a solution.


Solution

  • Put the folder path into userInfo with a custom key can help. Delegate method is depends on the framework you are using. It can be implemented as a local notification, so the certificate is not necessary.