问题描述
func application(_ application: UIApplication,didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
//Clicked on push notification when app was killed
if let options = launchOptions,let userInfo = options[.remoteNotification] as? [AnyHashable: Any]
{
// App was launched through a notification,execute some code here...
Logger.log(message: "didFinishLaunchingWithOptions:\(userInfo)")
nofificationData = userInfo
}
return true
}
请查看我已实现的代码didFinishLaunchingWithOptions,但是launchOptions始终返回nil。请指教。 谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)