React Native Linking External App

Question

Inside my customized native application, I want to run an external application called "Taco Shop". I am using react-native-app-link package. I want to launch this application from my application, but if it is not installed, take the user to the application store.

code

var url = "tacoshop://";  <-----NO CLUE WHERE OR HOW I GET THIS URL
var appName = 'Taco Shop';
var appStoreId = 'id1185454813';
var playStoreId = 'io.simplyorder.tacoshop';


AppLink.maybeOpenURL(url, { appName, appStoreId, playStoreId }).then(() => {
  // do stuff
})
.catch((err) => {
  // handle error
});

      

It launches Google Play / App Store, but doesn't launch the actual app when installed. How do I find the url of the taco store app to launch directly if it is installed?

+3


source to share





All Articles