My meteor app login with facebook seems to work properly except that the login popup never closes. The popup window stays open until the app is reloaded. I don't even where to start to debug this... The popup is blank and the inspect reveals :
<p id="completedText" style="display:none;">
Login completed. <a href="#" onclick="window.close()">
Click here</a> to close this window.
</p>
The style=display:none is probably why the popup appears blank but I don't know how to update that style. Also, if I perform a window.close() from the console, the popup disappears but the app doesn't register the login.
BTW, this bug only appears when I use my app from my domain name, when I call it from the IP address, it works just fine.
Apparently this is a known bug with iOS and can be solved by changing the loginStyle parameters:
Usually, the popup-based flow is preferable because the user will not have to reload your whole app at the end of the login flow. However, the popup-based flow requires browser features such as window.close and window.opener that are not available in all mobile environments. In particular, we recommend using Meteor.loginWith({ loginStyle: "redirect" }) in the following environments:
Inside UIWebViews (when your app is loaded inside a mobile app) In Safari on iOS8 (window.close is not supported due to a bug)