forked from Ivasoft/mattermost-mobile
Call Linking.getInitialURL() in launchApp (#3844)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
This commit is contained in:
committed by
Miguel Alatzar
parent
a7dc68b40b
commit
dddcbefefe
@@ -29,7 +29,8 @@
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:launchMode="singleTask">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
|
||||
@@ -58,6 +58,10 @@ const launchApp = (credentials) => {
|
||||
|
||||
telemetry.startSinceLaunch(['start:splash_screen']);
|
||||
EphemeralStore.appStarted = true;
|
||||
|
||||
Linking.getInitialURL().then((url) => {
|
||||
store.dispatch(setDeepLinkURL(url));
|
||||
});
|
||||
};
|
||||
|
||||
const launchAppAndAuthenticateIfNeeded = async (credentials) => {
|
||||
@@ -73,10 +77,6 @@ const launchAppAndAuthenticateIfNeeded = async (credentials) => {
|
||||
await emmProvider.handleAuthentication(store);
|
||||
}
|
||||
}
|
||||
|
||||
Linking.getInitialURL().then((url) => {
|
||||
store.dispatch(setDeepLinkURL(url));
|
||||
});
|
||||
};
|
||||
|
||||
Navigation.events().registerAppLaunchedListener(() => {
|
||||
|
||||
Reference in New Issue
Block a user