Skip to content

Commit e1673b5

Browse files
committed
Use RNBranchModule.onNewIntent() in webview_example
1 parent b86c150 commit e1673b5

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

ChangeLog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
2020-08-27 Version 5.0.0
22
- Requires react-native >= 0.60
33
- This release includes Branch native SDKs Android 5.0.3 and iOS 0.35.0.
4+
- Added RNBranchModule.onNewIntent for Android. This replaces calling
5+
`setIntent` and `RNBranchModule.reInitSession`.
6+
```java
7+
@Override
8+
public void onNewIntent(Intent intent) {
9+
super.onNewIntent(intent);
10+
RNBranchModule.onNewIntent(intent);
11+
}
12+
```
13+
- Added `cachedInitialEvent` Boolean parameter to `onOpenStart` callback.
14+
- Improved support of in-app linking via `branch.openURL()`. The `newActivity`
15+
option for Android was removed.
16+
- There is a known issue with in-app linking on Android. When opening a link
17+
within an app via `branch.openURL()`, there is no `onOpenStart` callback
18+
and no `uri` parameter in the `onOpenComplete` callback. This will be
19+
addressed in the next release.
20+
- Rebuilt `testbed_simple`, `webview_example` and `browser_example` with
21+
RN 0.62.2.
422

523
2020-07-23 Version 5.0.0-rc.1
624
- Requires react-native >= 0.60

examples/webview_example/android/app/src/main/java/com/webview_example/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected void onStart() {
1616
@Override
1717
public void onNewIntent(Intent intent) {
1818
super.onNewIntent(intent);
19-
setIntent(intent);
19+
RNBranchModule.onNewIntent(intent);
2020
}
2121

2222
/**

0 commit comments

Comments
 (0)