I'm trying to query in a todayViewController, however whenever I run this extension it asks me to set the client ID (where I did in the app delegate.m). Then I added the extension as a target membership of the AppDelegate.m. However, the code:
[[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings];
[[UIApplication sharedApplication] registerForRemoteNotifications];
works not fine for the extension as the error mentioned from the console. Then I tried comment this part out, the today extension runs, but there has no any reaction. I added the query in
- (void)widgetPerformUpdateWithCompletionHandler:(void (^)(NCUpdateResult))completionHandler {
// Perform any setup necessary in order to update the view.
completionHandler(NCUpdateResultNewData);
}
please help! thanks in advance for helps!