agora-appbuilder-core 4.1.25-beta.2 → 4.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.1.25-beta.2",
3
+ "version": "4.1.26",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -77,8 +77,8 @@ const DefaultConfig = {
77
77
  CHAT_ORG_NAME: "",
78
78
  CHAT_APP_NAME: "",
79
79
  CHAT_URL: "",
80
- CLI_VERSION: "3.1.25-beta.2",
81
- CORE_VERSION: "4.1.25-beta.2",
80
+ CLI_VERSION: "3.1.26",
81
+ CORE_VERSION: "4.1.26",
82
82
  DISABLE_LANDSCAPE_MODE: false,
83
83
  STT_AUTO_START: false,
84
84
  CLOUD_RECORDING_AUTO_START: false,
@@ -137,6 +137,15 @@ const AuthProvider = (props: AuthProviderProps) => {
137
137
  }
138
138
  }, [store?.token]);
139
139
 
140
+ // A running native app is already authenticated when it receives a URL
141
+ // event, so there may be no later token change to consume returnTo.
142
+ useEffect(() => {
143
+ if (authenticated && returnTo && (isAndroid() || isIOS())) {
144
+ history.push(returnTo);
145
+ setReturnTo('');
146
+ }
147
+ }, [authenticated, history, returnTo]);
148
+
140
149
  const deepLinkUrl = (link: string | null) => {
141
150
  if (link !== null) {
142
151
  if (lifecycle?.onDeepLink?.(link)) {