Browse Source

add a device message for debugging

B. Petersen 4 năm trước cách đây
mục cha
commit
8a22b3c8d0
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      deltachat-ios/AppDelegate.swift

+ 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()
         }