ios - watch os2 handoff to iPhone doesn't work when app is being launched -
i'm having issues watch os2 handoff, specially when iphone app not running. see launchoptions is: uiapplicationlaunchoptionsuseractivitydictionarykey = { uiapplicationlaunchoptionsuseractivityidentifierkey = "xxx"; uiapplicationlaunchoptionsuseractivitytypekey = "com.xxx"; };
it seems missing uiapplicationlaunchoptionsuseractivitykey have actual nsuseractivity object need handling handoff.
*when opening on running app (bool)application:(uiapplication *)application continueuseractivity:(nsuseractivity *)useractivity restorationhandler:(void(^)(nsarray * __nullable restorableobjects))restorationhandler correct nsuseractivity , can handle properly.
any idea have gone wrong? thing have mention, when opening core spotlight result on closed app, nsuseractivity being passed correctly, seems issue watch handoff.
Comments
Post a Comment