How can i get parameters from play store download link - react-native

I am currently developing a mobile app with react-native and this app contain a invitation code.
Store download link will have a invitation code parameter.
I want to get this parameter from downloaded apps via store download link.
How can i do this on react-native ?
Thanks in advance

Use Firebase Dynamic Links
Firebase Invites makes it simple for users to send content to their friends, over both SMS and email, by ensuring that referral codes, recipe entries, or other shared content gets passed along with the invitation—no cutting-and-pasting required.
Documentation https://firebase.google.com/docs/dynamic-links/
How does it work?
You create a Dynamic Link either by using the Firebase console, using a REST API, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain specific to your app. These parameters specify the links you want to open, depending on the user's platform and whether your app is installed.
When a user opens one of your Dynamic Links, if your app isn't yet installed, the user is sent to the Play Store / App Store to install your app (unless you specify otherwise), and your app will open. You can then retrieve the link that was passed to your app and handle the deep link as appropriate for your app.
For react-native use react-native-firebase https://www.npmjs.com/package/react-native-firebase
and
https://rnfirebase.io/docs/v5.x.x/links/reference/links

Related

Firebase Dynamic Links looses UTM parameters

we have successfully implemented dynamic links natively on iOS, but we loose our UTM parameters, when the User installs his App via AppStore.
Details:
In case a user has not installed the targeted App, then the user will be redirected to the AppStore after tabbing on the dynamic link. After installing the app and open it, the UTM parameters are not being sent to Google Analytics.
I assume these UTM parameters get lost during the AppStore redirect, as this Issue does not reproduce for users, who have already installed the App. Also for Android, we could not reproduce this.
Any hints on that? Thanks!

Linking to app store review page in branch.io

Is there any way to create a link within Branch.io which instead of loading the installed app, would instead bring the user to the app's page in the store where the user could review the app. This would be used in email marketing.
Amruta from Branch.io here:
If you want users to be directed to a specific page you can make the links as Web Only.
For iOS: When you create the link specify the $ios_redirect to your App page on the App Store and add $web_only: true to your deep link data. The Branch link thus created will redirect to the web URL you have specified as the iOS redirect (in this case the App Store page).
For Android: When you create the link specify the $android_redirect to your App page on the Play Store and similarly add $web_only: true to your deep link data. The Branch link thus created will redirect to the web URL you have specified as the Android redirect (in this case the Play Store page).
PS: For Android, if you have App links setup for your App clicking on the link will redirect to your App irrespective. For this to work, you should remove the App links configuration in your App and the Branch dashboard if any.
You can check the list of possible parameters for configuring links here.
Edit:
1. Add the $web_only parameter in the Deep Linking section
Set the iOS and Android redirect to the App Store and Play Store URLs respectively.

Firebase dynamic link redirection

I'm using REST API provided by firebase for dynamic link generation. How do I create a link that opens up app and include app specific variables.
It's the same value. If the app is not installed, link will be opened in the browser (unless overridden by the ifl or afl params). If the app IS installed, it will launch and you'll get the contents of link delivered to you, which you must then parse out and handle as necessary to accomplish deep linking to content inside the app.
See here for an implemented example, and a comparison with the simpler 'key:value' approach we use at Branch.io (full disclosure: I'm on the Branch team).

How to do FB feed share post without leaving my hybrid app?

I am making mobile app using Sencha touch which will be bundled as native app and installed on devices. In my app on certain pages I want to add "share" functionality which is supposed to post some data to user's feed. While testing on browser I can to do that by opening a window with FB sharing url like "https://m.facebook.com/dialog/feed" or "https://m.facebook.com/sharer.php" and passing all related params as explained in https://developers.facebook.com/docs/reference/dialogs/feed/
But when this app is bundled and I share with this, user is moved to browser and cannot return to app because redirect_uri cannot point to app which is why I wanted to open this dialog within my app, probably in an iFrame. This is also not possible because these dialogs are not allowed to be embedded in iframe by META tags and in order to surpass it I have to do user login which again is another dialog which I cannot open in my app's iFrame.
I also looked at sample sencha app http://blooming-day-7830.herokuapp.com/ but it also takes user to separate login page instead of opening in-app dialog.
So my questions is how does hybrid apps connect with FB without moving out user to browser?
if you decide to use PhoneGap you can try the following two options. You will have to check for the iOS version before you switch your Phonegap call to. . .
Option 1 : for iOS before 6.0
Phonegap has a pretty nifty ChildBrowser plugin that you can use to load the FB share page without leaving the app for iOS 5.0 and below.
Option 2 : for iOS 6.0+
Facebook Share functionality has now been added to iOS. So all you have to do, is call a custom plugin class that you create, and call the standard FB share code using a basic Phonegap plugin call. You won't leave the app, the ChildBrowser doesn't have to show up, instead, you'll get the stock iOS-FB share sheet that will show up, you can add pictures, text, and so on, and post to facebook.

How Can I Launch The App-store App Directly from my Application

I want to place a button or a link in my app with which the user can start the app-store and buy my app if the app is in trial mode.
I can not find any relavant Information on this. How can I implement this?
MSDN documentation: Creating links with the Windows Store protocol. Alternatively, the URI for the app in the store can be accessed using the Windows.ApplicationModel.Store.CurrentApp.LinkUri property.
You can then open a link to your app in the store using Windows.System.Launcher.LaunchUriAsync.