react-native-app-link icon indicating copy to clipboard operation
react-native-app-link copied to clipboard

Open Other applications on button press

Open sagarhudge opened this issue 6 years ago • 7 comments

@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

sagarhudge avatar Nov 18 '19 05:11 sagarhudge

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

ThukuWakogi avatar Oct 20 '20 07:10 ThukuWakogi

any luck here???

amit13091992 avatar Dec 17 '20 13:12 amit13091992

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.

ThukuWakogi avatar Dec 18 '20 06:12 ThukuWakogi

anyone found solution ?

gulsher7 avatar Oct 06 '21 07:10 gulsher7

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 avatar Oct 07 '21 11:10 abewartech

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

abewartech avatar Oct 07 '21 11:10 abewartech

anyone found solution?

Auggustos avatar Apr 01 '22 19:04 Auggustos