Each Ancestry login in unique regardless of what domain your subscription is. The .com website is the only one the Ancestry API uses for login. It will work with your tree in RM once you have logged in there. If you wanted to view the person or hint online then you need to go to your subscription domain. You can select that setting under Settings, WebHints, Domain.
I now have access to ancestry via treeshare. Thanks