I have a problem that looks familiar but with a different use case.
I have an application in which I have a url like below
https://www.myWebLink.com/referral-id/xxx
where xxx can by any user ID.
Note: This url is a sharable url, which is shared by any user, with it's own USER ID, so when a next user opens link, it will display USER ID of the user who shared URL.
All I want to do is when user shares above URL and it's clicked, there are 2 possibilities, either application is already installed or not and there are 2 actions as well.
1 - If application is installed, it opens the application and user ID is populated in the field. (This point is working well, i have handled it through deeplinks)
2 - If application is not installed, it should land to googleplay and once user installs the application, it should land back to application with user ID populated into the field.
For second point I am able to redirect user to googleplay, for that I have used "firebase dynamic links" but the only problem I am facing is, I have to define URLs in dynamic link template, but for my case a URL totally depends on the user (as it has unique USER ID).
So my question would be how can I achieve the second part where once user installs the application from googleplay, it lands back to application with user ID populated.
Thank in advance.
Related
For example:
I have User A and User B.
Both Users get a link to Google Play to download my App.
After launching it first time without login or registration i want to redirect User B to other content than User A (Getting Data from DB).
How can I handle it without Firebase Dynamic Links?
How would the link look like?
How to handle it in React-Native?
I tried to find a solution and found Firebase Dynamic Links but would like to realize it without Firebase.
I am just curious to know the possibility of the below scenario,
I have a MailChimp URL with the product page,( Say http://www.androidapp.com/productpage?product_id=10 ) Now this url is sent to user email. Whenever user clicks on the url, the android app should gets open the particular product screen in the installed app. Is this achievable?
I had analyzed with these references and yet to find the possibility of achieving it.
Refered:
https://developer.android.com/training/app-indexing/deep-linking.html
https://en.wikipedia.org/wiki/Mobile_deep_linking
Dynamic Link Actions in mailchimp
I have an app that, when a user sign up, sends an email for activation. When the user taps that link my app starts overlapping the mail app instead of opening or bringing to front the one that the user used to sign up. Is there a way for the link to open or brings to front the one that the user used?
I have an internal-use Android app which requires users to always login. My app consists of a dashboard which will have 4 available actions on it to perform.
What is the best practice? Set LoginActivity to be the main activity, or use the DashboardActivity as the main and on startup show login screen if user is not logged?
Thanks!
I would recommend using the login activity and use SharedPreferences to pass on the username once the user logs in correctly to the app for the first time. The user would remain logged in until he logs out of it (either manually or by deleting the app data from the phone settings).
The function of the SharedPrefences is to keep the user details in the app, even after the user goes to a different app. The credentials are kept when he/she uses them again once the user uses the app again. If you have developed for web applications beforehand, it is somewhat similar to the function of cookies, only more secure, since these credentials are kept hidden in the app.
A very good tutorial on how to implement this.
You can use the first loginActivitiy for the first time a user logs in. Then once the user returns to the app, he/she would be taken to the main page of the app (the next activity after a login is successful). This can be achieved though a few lines of code as in this post.
I am creating native android application with image gallery.
I want to create a Google plus button for each of my images. When user press +1 I want to publish a post on his wall:
user_name like's image_name on my_app
And I wish that when clicking on this post it will do the follow:
clicking on user_name will bring you to the users page.
clicking on image_name will bring you to my application and show you this image.
clicking on my_app will bring you to my application, main page.
*If you don't have the app installed it will send you to Google play store, to download it.
How do I do this?
Is it possible?
With the new Google+ Sign-In, you can now create an Interactive Post for your users. This behaves much the same as a normal Share, however, you can add a call to action button (allowing users to "listen" or "RSVP") and a deep link, which will bring a user from their Google+ Stream and into your app. Also, these posts can be customized with pre-filled text and up to 10 pre-filled recipients.
Learn more at: https://developers.google.com/+/features/interactive-posts.