react-native-app-link
react-native-app-link copied to clipboard
Open Other applications on button press
@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 Did you come across a way to use it or a demo?
any luck here???
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.
anyone found solution ?
const onPresss = () => { OpenApplication.openApplication('com.dev47apps.droidcam') .then(() => {}) .catch(err => { AppLink.maybeOpenURL('droidcam://', { appName: 'DroidCam', appStoreId: '', appStoreLocale: '', playStoreId: 'com.dev47apps.droidcam', }) .then(() => {}) .catch(err => {}); }); };
import OpenApplication from 'react-native-open-application';
anyone found solution?