Skip to content

Commit 66d4e14

Browse files
committed
ChangeLog updates
1 parent 0ea2edf commit 66d4e14

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

ChangeLog.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,97 @@
1+
2020-04-10 Version 5.0.0-beta.1
2+
- For use with react-native >= 0.60
3+
- This release includes Branch native SDKs Android 5.0.0 and iOS 0.32.0.
4+
- The `branch.subscribe` callback now passes a third named parameter, `uri`,
5+
which is the URI/URL that originally launched the app. In some cases this
6+
may be `null` (e.g. deferred deep links). Consult the `~referring_link`,
7+
`+url` or `+non_branch_link` parameter in those cases.
8+
- You can now be notified when Branch is about to open a link using two
9+
separate callbacks, `onOpenStart` and `onOpenComplete`. The
10+
`onOpenComplete` callback is identical with the single callback passed to
11+
`branch.subscribe`.
12+
13+
```js
14+
import branch from 'react-native-branch'
15+
16+
branch.subscribe({
17+
onOpenStart: ({uri}) => {
18+
console.log('Branch will open ' + uri)
19+
},
20+
onOpenComplete: ({error, params, uri}) => {
21+
if (error) {
22+
console.log('Error from Branch opening ' + uri + ': ' + error)
23+
return
24+
}
25+
26+
console.log('Branch opened ' + uri)
27+
// handle params
28+
},
29+
})
30+
```
31+
32+
### Updating from an earlier version:
33+
34+
#### iOS
35+
36+
In the AppDelegate, use the following methods:
37+
38+
##### Obj-C
39+
40+
```Obj-C
41+
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(nonnull NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
42+
return [RNBranch application:application openURL:url options:options];
43+
}
44+
45+
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> *restorableObjects))restorationHandler {
46+
return [RNBranch continueUserActivity:userActivity];
47+
}
48+
```
49+
50+
##### Swift
51+
52+
```Swift
53+
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
54+
return RNBranch.application(app, open: url, options: options)
55+
}
56+
57+
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
58+
return RNBranch.continue(userActivity)
59+
}
60+
```
61+
62+
2020-04-10 Version 3.2.1
63+
- For use with react-native < 0.60
64+
- This release includes Branch native SDKs Android 5.0.0 and iOS 0.32.0.
65+
66+
2020-03-11 Version 4.4.0
67+
- For use with react-native >= 0.60
68+
- This release includes Branch native SDKs Android 4.3.2 and iOS 0.31.3.
69+
- Introduced an enableFacebookLinkCheck Boolean parameter in branch.json.
70+
This results in calling enableFacebookAppLinkCheck() on Android and
71+
registerFacebookDeepLinkingClass: on iOS for use with react-native-fbsdk.
72+
Advanced users: You can still call these methods in native code as before
73+
if your use case dictates.
74+
75+
2020-03-11 Version 3.2.0
76+
- For use with react-native < 0.60
77+
- This release includes Branch native SDKs Android 4.3.2 and iOS 0.31.3.
78+
- Fixed a crash due to NPE on Android experienced by some users. Now an error should be properly reported.
79+
- Introduced an enableFacebookLinkCheck Boolean parameter in branch.json.
80+
This results in calling enableFacebookAppLinkCheck() on Android and
81+
registerFacebookDeepLinkingClass: on iOS for use with react-native-fbsdk.
82+
Advanced users: You can still call these methods in native code as before
83+
if your use case dictates.
84+
85+
2020-02-27 Version 3.1.2
86+
- This release, for React Native < 0.60, updates native SDK support to Android 4.3.2 and iOS 0.31.3.
87+
88+
2020-02-13 Version 4.3.0
89+
- Requires RN >= 0.60
90+
- Uses native Branch SDKs 4.3.2 (Android), 0.31.x (iOS).
91+
- SDK-802 accept PR to expose setMetadata at the JS layer
92+
- SDK-714 add plugin identifier
93+
- Addresses several github issues.
94+
195
2019-09-30 Version 4.2.1
296
- Missed version update in iOS RNBranch.m
397

0 commit comments

Comments
 (0)