I have following method, which written in swift (before swift 3). below is the method
func application(application: UIApplication, didReceiveRemoteNotification launchOptions: [AnyHashable: Any]) -> Void {
Branch.getInstance().handlePushNotification(launchOptions)
}
it gives and error of Use of undeclared type AnyHashable
. how can I covert this to swift 3. I tried with following.
func application(application: UIApplication, didReceiveRemoteNotification launchOptions: [NSObject : AnyObject]) -> Void {
Branch.getInstance().handlePushNotification(launchOptions)
}
it removes the error, but don't know it act like same way. hope your help with this. thanx in advance.
type conversion
do like
for more information you can get from branch in Git