Skip to content

External boluses not immediately reflected in Loop display #1037

@j4cbo

Description

@j4cbo

Describe the bug
When an outside bolus is added to HealthKit, it should promptly be reflected in Loop's UI (predicted glucose, active insulin, and insulin delivery graphs)

Attach an Issue Report
Loop Report 2019-07-26 09:57:56-06:00.md.txt

Console logs filtered to process:Loop:
console.txt
The first log entry corresponds to switching away from the Loop app. I logged the insulin dose around the same time. Loop's only output while I was adding doses in the Health app was the WCSession / WCXPCManager lines.

To Reproduce
Steps to reproduce the behavior:

  1. Switch from Loop to Apple Health app
  2. Log a large insulin dose (navigate to insulin delivery, press + in top right corner)
  3. Switch back to Loop

Expected behavior
I expect to see the new dose promptly reflected in Loop's UI and prediction displays.

Screenshots
n/a

Phone

  • Hardware: iPhone X
  • OS Version: iOS 12.3

Loop Version

  • Version Number: 1.10.0-dev
  • Repo: LoopKit/Loop, dev branch

CGM

  • Device: Dexcom G6
  • Manager app: Dexcom App

Pump

  • Manufacturer: Insulet
  • Model: Omnipod

Additional context
The use case I'm most interested in is actually doses coming from a Companion Medical InPen... but manual entry to HealthKit seems to provide similar results and is easier to reproduce :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions