Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onInstall and onClose events #94

Open
ghost opened this issue Nov 1, 2017 · 1 comment
Open

onInstall and onClose events #94

ghost opened this issue Nov 1, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 1, 2017

Hi. I'm trying to redirect the user to the app store or open the app if the app is installed. I use a setTimeout in order to do that. Solution described in this link
https://stackoverflow.com/questions/13044805/how-to-check-if-an-app-is-installed-from-a-web-page-on-an-iphone
I see that in the jquery plug-in there are 2 events. onInstalll and onClose. Are these events included in the configuration of smart-app-banner?
It seems that they are not triggered.

Thanks

@daGUY
Copy link

daGUY commented May 23, 2018

It doesn't look like there are any exposed events to hook into, unfortunately. However, at least for closing the smart banner, you can just attach your own click event:

$(".smartbanner-close").on("click", function () {
    // whatever you want to happen when the banner is closed
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant