-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deep linking return null via push notification when i kill the app #28727
Comments
|
|
|
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
I facing exact same issue.
|
Similar to #11191 |
same issue. Deeplink can be obtained by calling Linking from the hyperlink of the browser, but deeplink cannot be obtained by calling Linking after clicking push notification. any way for it? |
follow: solved it! |
Can you explain us the solution ? Last comment is same code as provided on this issue (listener + getInitialURL). I notice that it seems working when dev server is not used (bundle file instead of bridge url). |
my solution: getInitialURL: RCT_EXPORT_METHOD(getInitialURL:(RCTPromiseResolveBlock)resolve if (self.bridge.launchOptions[UIApplicationLaunchOptionsURLKey]) { }else if (self.bridge.launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey]){ ["url"]: good luck! |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This issue is caused because when launching the app from a notification the launch options will not contain the initial url, and since the React-Native run time is not available yet, the url event listener won't fire. A fix for this would involve somehow having the event listener work even when the run time hasn't loaded yet. Otherwise you will need to parse the options in iOS native code for the launch URL and set the launch option key that react native is looking for. |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
This issue was closed because the author hasn't provided the requested feedback after 7 days. |
Current Behavior
i have 2 scenarios in IOS:
appname://....
, i can open the app and navigate to the disired screen., only from push notification that not work.Expected Behavior
Your Environment
The text was updated successfully, but these errors were encountered: