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

listen is MobilePay aplication installed; #3

Open
Mactub07 opened this issue Jul 4, 2017 · 4 comments
Open

listen is MobilePay aplication installed; #3

Mactub07 opened this issue Jul 4, 2017 · 4 comments

Comments

@Mactub07
Copy link

Mactub07 commented Jul 4, 2017

think of a situation : user doesn't have MobilePay app installed --> he click to button --> see custom alert with redirect to AppStore --> installed MobilePay --> then comeback to base application.
Problem : constant "MobilePay.isMobilePayInstalledFinland" (or for other countries) is not changes dinamycally. does exist way to listen installation of mobilePay app ( use not constant but callback)?

@madsleejensen
Copy link
Owner

yeah i thought about that, but decided to go with a simple "sync" up-front constants solution instead, looking back maybe this wasnt the best choice! Would be happy to accept a PR to provide async callback for checking if mobilepay is available.

@RasmusFredensborg
Copy link

I've made a pull request that adds support for this functionality: #5 :-)

@Vasant-Patel
Copy link

Another option would be to use
const isInstalled = await Linking.canOpenURL('mobilepayfi://');

@tknuts
Copy link

tknuts commented Jan 9, 2019

Hey Mads..
Will this React Native component run with Expo(expo.io)?
Regards, Thomas

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

5 participants