The geofence function is still in the laboratory stage and various smartphone settings can interfere with it. Take a look here:
Do you use an iPhone or Android?
Apart from that, a function like this doesn’t work perfectly with GPS alone. It works much better with a Bluetooth beacon. However, I’m unsure if the U50 reliably transmits a continuous Bluetooth beacon and if Aqara has plans to integrate this feature.