Theme App Embed Activation

I want merchants to activate the theme app embed easily.

I tried redirecting them to activate it, then checking settings_data.json when they return it works but it’s a poor UX
I also tried a popover window to prompt activation, which works too, but I rely on them closing the window to trigger the check.

Both solutions work, but each has tradeoffs. I’m wondering if there’s a cleaner way to handle this without these issues. Any ideas?