Presence for android

I was using locative first my wife’s phone. I set the battery optimization to not optimize. The phone keeps switching present to not present.

So I added the hubitat app. Same thing same settings. Any idea what I am doing wrong and it keeps switching when at home?

Seems like when phone sleeps goes to not present and when it awakes it comes back

Thanks

Make sure to set these apps to not sleep and be able to run in the background unmanaged.

thats the first thing i did. i went into battery and told it to not manage the apps. anything else anyone can think of?