Gtk-WARNING cannot open display: :0 [Core22-ubuntu22-arm64]

Tou are most likely missing the x11 plug or similar… try using snappy-debug from the same named snap package, run it alongside your app in a second terminal, it should make suggestions about missing plugs in your snap.