|
|
@@ -146,9 +146,11 @@ class LoopAPNSService {
|
|
|
"alert": "Remote Carbs Entry: \(String(format: "%.1f", carbsAmount)) grams\nAbsorption Time: \(String(format: "%.1f", absorptionTime)) hours",
|
|
|
] as [String: Any]
|
|
|
|
|
|
+ /* Let's wait with this until we have an encryption solution for LRC
|
|
|
if let returnInfo = createReturnNotificationInfo() {
|
|
|
finalPayload["return_notification"] = returnInfo
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
// Log the exact carbs amount for debugging precision issues
|
|
|
LogManager.shared.log(category: .apns, message: "Carbs amount - Raw: \(payload.carbsAmount ?? 0.0), Formatted: \(String(format: "%.1f", carbsAmount)), JSON: \(carbsAmount)")
|