Today Extension Not working iOS swift || when click the today extension app opens and crashes it doesn't show errors iOS swift || widget crashed iOS

Problem:

Today extension with grouping has working properly.But if i click the extension it was opened the app and within two seconds app crashes but nothing to get the crashlog it pointed in didfinishlaunching.Head broken.I had putted breakpoint on didfinsihlaunching options also not working.


Solution:

The app crashed bacause of i used this method is wrong.

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {



Use this method will work perfectly

    func application(_ application: UIApplication, handleOpen url: URL) -> Bool
}


Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift