I'm updating my existing App that's in the store for couple of years now. I'm now using Xcode-8.2.1 (8C1002) and Sierra 10.12.2.
No code changes, just rebuilding in current Xcode for deployment target iOS-8. My build goes thru and I'm able to install and run on Simulators and iPhone / iPad.
However, Local Notifications are not working. I noticed that they are being set properly as earlier but the notification does not turn up. This is a working App in the store with no code changes done whatsoever. On looking around for reasons I discovered that the newly built App does not show up in the Settings -> Notifications. How to enable this through the Info.Plist or anyother way?
Thanks!
Found it! AppDeegate.m needs UIUserNotificationSettings in didFinishLaunchingWithOptions. This was not needed when I developed my App few years ago.
After adding this, the App asked for permission for Notifications the first time and on accepting, my App works as expected.
Updating working Apps to keep up with ongoing iOS and Xcode changes is quite a task!