Эх сурвалжийг харах

add a device message for debugging

B. Petersen 4 жил өмнө
parent
commit
8a22b3c8d0

+ 4 - 0
deltachat-ios/AppDelegate.swift

@@ -69,6 +69,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         let notificationOption = launchOptions?[.remoteNotification]
         logger.info("Notifications: remoteNotification: \(String(describing: notificationOption))")
 
+        let msg = DcMsg(viewType: DC_MSG_TEXT)
+        msg.text = "remoteNotification: \(String(describing: notificationOption))"
+        dcContext.addDeviceMessage(label: nil, msg: msg)
+
         if dcContext.isConfigured() && !UserDefaults.standard.bool(forKey: "notifications_disabled") {
             registerForNotifications()
         }