fix(ios): correct userInfo scope error in notification delivery handler
Fixed compilation error where userInfo was referenced outside its scope in handleNotificationDelivery error logging. Changed to use notification.userInfo directly.
This commit is contained in:
@@ -1415,8 +1415,8 @@ public class DailyNotificationPlugin: CAPPlugin {
|
||||
guard let userInfo = notification.userInfo,
|
||||
let notificationId = userInfo["notification_id"] as? String,
|
||||
let scheduledTime = userInfo["scheduled_time"] as? Int64 else {
|
||||
NSLog("DNP-ROLLOVER: ERROR handleNotificationDelivery missing required data userInfo=%@", userInfo ?? "nil")
|
||||
print("DNP-ROLLOVER: ERROR handleNotificationDelivery missing required data userInfo=\(userInfo ?? [:])")
|
||||
NSLog("DNP-ROLLOVER: ERROR handleNotificationDelivery missing required data userInfo=%@", notification.userInfo ?? "nil")
|
||||
print("DNP-ROLLOVER: ERROR handleNotificationDelivery missing required data userInfo=\(notification.userInfo ?? [:])")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user