Build23 pings all relays immediately after opening the app, and instantly reconnects if the ping fails. This should ensure that you are always connected to nostr. This has been quirky in the past but I think we’re rock solid now. Going to let the build bake for a bit but if we’re happy with it I will release to AppStore !
Discussion
Take a break it's the weekend
I’m fine with the app dropping connections to the relays when it’s not in the foreground. (In fact I think that’s probably how it should work - or at least limit connections to them). But what I’ve noticed with Damus and other apps (I’m running betas for Damus, Nostur & Nos) is that when the apps go from background to foreground they don’t reconnect to the relays. To me that’s the biggest problem. I wait a few seconds, then kill the app and restart it and everything is great.