Am totally stuck with something. Working on deep link and its redirection. When clicking on a deep link it's getting redirected to my app. I have added the code to handle in my HomePage.js.
Scenario 1:
If app is removed from background in phone then the deep link redirection works great
Scenario 2:
If app is kept at HomePage.js and left in background of device. then on deep link click opens the app no redirection happens.
Scenario 3:
If app is kept at HomePage.js which have AppState.addListener() and left at background and then on click of deep link HomePage state change listener is hit but there is no url.
Expected behaviour
App should detect its being redirected when its on any page with the url.
Related
I am using branch io to implement deep linking in our react native app. I am able to navigate to different screens using the deep link from push notification when the app is in background state .
The issue occurs when app is started from fresh state. We have a Splash screen that is the default screen that loads after app starts and some logic is written in it like initializing app location ,verifying the jwt token is valid. Setting app localizations.
After these actions we navigate user to the home screen. In case of using deep link to fresh start the app it skips the Splash screen and navigates straight to the specific screen and in the result the actions we have to perform on Splash screen get skipped.
Please suggest a way to deal with this issue.
is there any deeplink in the Uber app that I can use to redirect my user to a specific screen within the app?
I saw this documentation but only refers to pickup and apply promo codes to a rider. I'm looking for some kind a app to app integration, that the user in my app has a button when clicked redirects to Uber add new payment method screen. I think the URL should look like https://m.uber.com/ul/add-payment, but i can't find this URL in the docs, if it exists
My question is about Linking of react-native : https://reactnative.dev/docs/linking
I implement this functionnality but I have a behavior that I don't want.
In case of my app is close, I click on a link and my app start. But before the link is detected my app start normaly, and after the link detected by the method Linking.getInitialURL() the redirection is done.
I find this behavior weird because the application starts as if it had been started normally and after a delay the link is detected and the redirection is executed. The user see the start useless screen before the redirecton.
Moroever it's a problem if the redirection with url is faster than the normally redirection. We see firt the redirection with url, and after the redirection of open app. So user can't access to the link redirection.
I don't know how resolve properly this problem.
I'm finding it hard to get Branch.io deeplinking to work with Intercom.
The Branch link works well when opened via native Messages app - opens the app directly when tapped.
But if we send this link through an Intercom message, and then tap on it on the phone, the result is not as expected:
On iOS
Open Intercom messages view.
Tap on the Branch link (sent from Intercom console).
Browser opens with an alert asking to open the native app ('Open this page in "MyApp"?').
Press "Open".
App detects the Branch parameters on the link and redirects to the correct page.
Expected Behavior
App should detect the link directly without being handed over by browser.
On Android
Open Intercom messages view.
Tap on the Branch link (sent from Intercom console).
List of suggested apps pops up - including "MyApp".
Tap on "MyApp".
App detects the Branch link ONLY, but without the parameters - which then will not redirect to any page.
Now send the app to the background (eg: Tap on home button), and then open "MyApp" again.
Branch will now detect the link with the parameters and redirect to the correct page (this sometimes happens in iOS as well).
Expected Behavior
Branch should detect the link with parameters directly, without the need to send the app to background and reopen.
Does anyone have an idea what I have missed out on? or a workaround?
I was thinking to setup Universal Links by uploading the Association File.. 🤷♂️
Btw, Branch.io configurations are all done and works perfectly with other social media apps.
react-native: 0.61.5
react-native-branch: 5.0.0-beta.1
react-native-intercom: 16.0.0
I have a PWA (specifically concerned about iOS Safari at the moment), where when I add the PWA to my homescreen, the page I was on when I added it shows up like a native app. However, when I navigate within the PWA (same domain just new pages) the URL bar shows up.
This post was similar, but mentions it's for chrome/android.
PWA: Address bar showing up when redirectioning to subdomains -- and, as I understand it, iOS doesn't use all of the manifest file. I tried setting the scope, but no luck.
I have the necessary head elements in for showing a standalone (like I said, the initial page when I saved the PWA to the homescreen works fine).
Any ideas how to fix this?
I was able to resolve this by undoing the router mode history and reverted back to # hash-based routing.
I'm using Vue, so basically I just undo what I did here
https://router.vuejs.org/guide/essentials/history-mode.html