swift 打印Push Notification收到的内容

2020-03-23  本文已影响0人  私人云笔记_骁勇波波

        let data = (try? JSONSerialization.data(withJSONObject: userInfo, options: [])) ?? Data()

        let string = String(data: data, encoding: .utf8) ?? ""

       viewController?.present(dialog, animated: true, completion: nil)

上一篇 下一篇

猜你喜欢

热点阅读