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

Open Other applications on button press #16

Open
sagarhudge opened this issue Nov 18, 2019 · 7 comments
Open

Open Other applications on button press #16

sagarhudge opened this issue Nov 18, 2019 · 7 comments

Comments

@sagarhudge
Copy link

sagarhudge commented Nov 18, 2019

@FiberJW @brentvatne @alleyhector @PeterChauYEG @sonaye

I am implementing react-native-app-link in my project but I am facing issue in the implementation I have a list of applications on the press of a specific button it should either open the app or redirect to play store or app store.

I do not have any deep-link URL for this app is there any way to achieve this?

Example for my app: IOS and Android

Package name: com.medlife.customerApp
name: MedlifePlay

iOS: package name: medlife-all-things-healthapp
id: 1078091111
App store name :Medlife

If possible please provide demo example for this library

@ThukuWakogi
Copy link

@sagarhudge Did you come across a way to use it or a demo?

@amit13091992
Copy link

amit13091992 commented Dec 17, 2020

any luck here???

@ThukuWakogi
Copy link

I used it in a manner like this

AppLink.maybeOpenURL('whatsapp://send?phone=254793335284', {
  appName: 'whatsapp-messenger',
  appStoreId: 310633997,
  appStoreLocale: '',
  playStoreId: 'com.whatsapp',
})

Ids and names can be found on the urls of the apps page on both app store and play store.

@gulsher7
Copy link

gulsher7 commented Oct 6, 2021

anyone found solution ?

@abewartech
Copy link

const onPresss = () => {
OpenApplication.openApplication('com.dev47apps.droidcam')
.then(() => {})
.catch(err => {
AppLink.maybeOpenURL('droidcam://', {
appName: 'DroidCam',
appStoreId: '',
appStoreLocale: '',
playStoreId: 'com.dev47apps.droidcam',
})
.then(() => {})
.catch(err => {});
});
};

@abewartech
Copy link

import OpenApplication from 'react-native-open-application';

@Auggustos
Copy link

anyone found solution?

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

6 participants