You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add ios native logs
* Use correct version
* Revert unneeded changes in package-lock
(cherry picked from commit a1ccdcb)
Co-authored-by: Daniel Espino García <[email protected]>
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
PushNotification.default.fetchAndStoreDataForPushNotification(bestAttemptContent, withContentHandler:{notification in
29
-
os_log(OSLogType.default,"Mattermost Notifications: processed data for db. Will call sendMessageIntent")
39
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: processed data for db. Will call sendMessageIntent")
30
40
self?.sendMessageIntent()
31
41
})
32
42
}else{
33
43
bestAttemptContent.badge =nil
34
-
os_log(OSLogType.default,"Mattermost Notifications: app in use, no data processed. Will call sendMessageIntent")
44
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: app in use, no data processed. Will call sendMessageIntent")
35
45
self?.sendMessageIntent()
36
46
}
37
47
return
38
48
}
39
49
40
-
os_log(OSLogType.default,"Mattermost Notifications: notification receipt seems to be empty, will call sendMessageIntent")
50
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: notification receipt seems to be empty, will call sendMessageIntent")
41
51
self?.sendMessageIntent()
42
52
})
43
53
}else{
44
-
os_log(OSLogType.default,"Mattermost Notifications: bestAttemptContent seems to be empty, will call sendMessageIntent")
54
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: bestAttemptContent seems to be empty, will call sendMessageIntent")
45
55
sendMessageIntent()
46
56
}
47
57
}
48
58
49
59
overridefunc serviceExtensionTimeWillExpire(){
50
60
// Called just before the extension will be terminated by the system.
51
61
// Use this as an opportunity to deliver your "best attempt" at modified content, otherwise the original push payload will be used.
52
-
os_log(OSLogType.default,"Mattermost Notifications: service extension time expired")
53
-
os_log(OSLogType.default,"Mattermost Notifications: calling sendMessageIntent before expiration")
62
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: service extension time expired")
63
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: calling sendMessageIntent before expiration")
54
64
sendMessageIntent()
55
65
}
56
66
@@ -62,13 +72,13 @@ class NotificationService: UNNotificationServiceExtension {
os_log(OSLogType.default,"Mattermost Notifications: No intent created. will call contentHandler to present notification")
75
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: No intent created. will call contentHandler to present notification")
os_log(OSLogType.default,"Mattermost Notifications: Fetching profile Image in server %{public}@ for sender %{public}@", serverUrl, senderId ?? overrideUsername ??"no sender is set")
81
+
TurboLogIOSNative.TurboLogger.write(level:.info, message:"Mattermost Notifications: Fetching profile Image in server", serverUrl,"for sender", senderId ?? overrideUsername ??"no sender is set")
72
82
if senderId !=nil || overrideIconUrl !=nil{
73
83
PushNotification.default.fetchProfileImageSync(serverUrl, senderId: senderId ??"", overrideIconUrl: overrideIconUrl){[weak self] data in
74
84
self?.sendMessageIntentCompletion(data)
@@ -81,7 +91,7 @@ class NotificationService: UNNotificationServiceExtension {
0 commit comments