Why are popups being blocked on our application but not others when users try to share content?
This is the code execution process:
1.) User enters web page.
2.) User clicks on a share icon for Facebook, Twitter, or Google Plus.
3.) Onclick event triggers an internal controller to save information and redirect back to the webpage. This time, a request parameter instructs to open a new window.
The code snippet for opening a new window (using Facebook as an example) looks like this:
var url = 'https://www.facebook.com/sharer/sharer.php?u='+copyLink;
window.open(url,'newwindow','width=600,height=600');
When popups are enabled, it works fine. But the issue is that users have to enable popups every time they want to share something.
Could this be a server problem? Why do other apps not face the same popup blocking issue while OUR APP requires enabling popups to function properly?
Any assistance on this matter would be highly appreciated.