This is my Swift 3 code:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
if let userInfo : Foundation.NSDictionary = launchOptions?[UIApplicationLaunchOptionsKey.remoteNotification] as? Foundation.NSDictionary {
self.setNavigationInfoFromPushNotification(userInfo: userInfo)
navigateFromPushNotification()
}
...
}
It results in a compile-time error that says:
Ambiguous reference to member 'Subscript'
Please can anyone help me with this?
The method signature has changed. See How to handle launch options in Swift 3 when a notification is tapped? Getting syntax problems.
It is now: