react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[Android] Deeplinks are null when a one-time permission is requested

Open emilioschepis opened this issue 3 years ago • 4 comments

Description

Whenever the user receives a notification that includes a deeplink and opens it, if the application requires a permission (e.g. location) during the start process, the deeplink is set to null causing the home page to be opened instead of the desired page.

We could reproduce this only on Android, on different OS versions. This does not apply when the user selects a permanent permission level (always/never).

Version

0.66.5

Output of npx react-native info

System:
    OS: macOS 13.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 2.24 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.0/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
    Watchman: 2022.10.17.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK:
      API Levels: 28, 29, 30, 31, 32, 33
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0, 33.0.1
      System Images: android-32 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9014738
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.13 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.5 => 0.66.5 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

  • receive a deeplink inside a notification
  • open the notification
  • make sure the app requests a permission during start
  • the deeplink url is now null

Snack, code example, screenshot, or link to a repository

https://github.com/ardiewen/react-native-one-time-permissions

This seems to be related to https://github.com/facebook/react-native/issues/32340 which was closed for inactivity.

emilioschepis avatar Jan 24 '23 08:01 emilioschepis

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jul 24 '23 05:07 github-actions[bot]

This issue is not stale.

emilioschepis avatar Jul 24 '23 05:07 emilioschepis

:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

github-actions[bot] avatar Jul 24 '23 05:07 github-actions[bot]

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 24 '24 05:02 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Mar 05 '24 05:03 github-actions[bot]