In Sweden the digital ID comes through the bank, so without a Swedish bank account nothing works, which is exactly why we're keeping ours.
In Belgium almost everything online needs the government login app: taxes, health insurance, even some bank functions. To set it up, I need a Belgian ID card, which I have, and a Belgian phone number, which I also have, but the app refused my card reader and then my phone for reasons I still don't understand.
After two evenings, I went to the commune in person, where a very patient woman set it up in ten minutes. So I'm curious: how did others get their digital ID or government login working as a foreigner? Was it simple, or did you also need to go in person?