File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -948,6 +948,21 @@ class AppComponent extends React.Component {
948948 throw error ;
949949 }
950950
951+ // https://reactnative.dev/docs/linking#handling-deep-links
952+ //
953+ // The handler added with Linking.addEventListener() is only triggered when app is already open.
954+ //
955+ // When the app is not already open and the deep link triggered app launch,
956+ // the URL can be obtained with Linking.getInitialURL().
957+ //
958+ // We only save the URL here since we want to show the content only
959+ // after biometrics check is passed or known disabled.
960+ const url = await Linking . getInitialURL ( ) ;
961+ if ( url && isCallbackUrl ( url ) ) {
962+ logger . info ( 'received initial callback url: ' , url ) ;
963+ this . callbackUrl = url ;
964+ }
965+
951966 const loadedSensorInfo = await sensorInfo ( ) ;
952967 this . setState ( { sensorInfo : loadedSensorInfo } ) ;
953968
You can’t perform that action at this time.
0 commit comments