mobile back button to close popup
-
is it possible to close the pop up on click of mobile back button instead of the web page going back
The page I need help with: [log in to see the link]
-
@anand99 – Yes it would be possible, but would require custom code. Likely to add a new empty page to the history and detect when it changes to that history item and use that to trigger a popup close.
If you wanted to open the popup on back button and upon second click of the back button close it, we have that in our exit intent, but the close part isn’t separate at this time.
Hope that helps. If your issue is resolved please take a moment to rate and review the plugin or support.
If you still need help please message us directly at https://wppopupmaker.com/support/.
Why don’t you add it in your future update
@anand99 – Can you clarify the purpose of this particular user flow? I honestly can’t see it being used by the bulk of our user base.
With the exit intent it makes since because we have already hijacked the back button to display the popup, the second click closes it and goes back where the back button should have taken them.
Here are you wanting to prevent them from going back?
Just trying to make sure I understand the use case before I decide whether to add it to our feature list or not. If I don’t understand it properly the end result may not do what you need the way you need it.
-
This reply was modified 6 years, 2 months ago by
Daniel Iser.
In mobile iam using the pop-up as a page to display search and search results , users have a tendency to close or back out from the page or popup by clicking back button
Daniel, I have the same problem. When the user is in a popup, the Back button of a mobile should behave in the same way as the Escape key does: closing the popup and leaving the user in the page that called the popup.
An example: a user using his mobile phlobe and watching my Services page clicks the button “I’m interested”. This triggers a popup asking his contact data. If the user decides not to fill them now and to escape from the popup, can click the Back button. In this case, I want the user to come back to my Services page (as if he had pressed the Escape key), no to my Home page as it happens now.
Of course, it should be an option to decide which behaviour will show the Back button of the mobile (as we can decide now if the Escape key will close the popup or not) so that existing implementations continue working as it do now, but new implementations have the opportunity to implement this improvement.
If you have already hijacked the back button it should be very easy for you to add these feature.
I’n sure that the bulk of your users would appreciate this feature, that can report them more contacts or sellings.
I’ve reached this thread trying to solve the same problem. Hope you find this clear and useful.
@ramongoma – Sorry for the delay, and appreciate the feedback, but this is not simple plugin and play functionality. We “worked it out” in a completely different context where the back button activates the popup, and does a bunch of other stuff before it can also close the popup.
Again I honestly don’t see us adding this in the near future as we have so many other higher priorities and only 2 full time team members.
If we do end up creating it, it would in all likely hood be relegated to a paid extension just like the Exit Intent trigger that works on the back button is.
That said you are free to try and hack it yourself. Adding extra history items and detecting them is not extremely difficult and there is a plethora of example code if I’m not mistaken. You would simply need to call
PUM.close(123);to close popup 123 at the right time in your solution. -
This reply was modified 6 years, 2 months ago by
The topic ‘mobile back button to close popup’ is closed to new replies.