فهرست منبع

add a device message for debugging

B. Petersen 4 سال پیش
والد
کامیت
8a22b3c8d0
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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()
         }