They’re not doing anything super clever, just watching for the button to appear on the WAN. Applications doing this will keep working after Amazon is gone.
eta: Ah, I see the problem. Without a clever hack, it probably needs Amazon to configure the button with the wifi parameters.