Skip to content

Commit c287149

Browse files
author
Aaron Lopez
authored
Merge pull request #596 from BranchMetrics/Staging
Staging
2 parents c1cd228 + 4b95b46 commit c287149

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fabric-identifier=io.branch.sdk.android.library
2-
fabric-version=2.19.0
2+
fabric-version=2.19.1
33
fabric-build-type=source

Branch-SDK/src/io/branch/referral/Branch.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,16 +2342,24 @@ private void registerAppInit(BranchReferralInitListener
23422342

23432343
registerInstallOrOpen(request, callback);
23442344
}
2345-
2345+
23462346
/*
2347-
* Register app init without any wait on wait locks. This will not be getting any params from the intent
2347+
* Register app init without any wait on intents or other referring params. This will not be getting any params from the intent
23482348
*/
23492349
void registerAppReInit() {
2350+
// on re-init make sure GAID is available
2351+
if (!trackingController.isTrackingDisabled()) { // Do not get GAID when tracking is disabled
2352+
isGAParamsFetchInProgress_ = systemObserver_.prefetchGAdsParams(this);
2353+
}
23502354
if (networkCount_ != 0) {
23512355
networkCount_ = 0;
23522356
requestQueue_.clear();
23532357
}
2354-
registerInstallOrOpen(getInstallOrOpenRequest(null), null);
2358+
ServerRequest initRequest = getInstallOrOpenRequest(null);
2359+
if(isGAParamsFetchInProgress_) {
2360+
initRequest.addProcessWaitLock(ServerRequest.PROCESS_WAIT_LOCK.GAID_FETCH_WAIT_LOCK);
2361+
}
2362+
registerInstallOrOpen(initRequest, null);
23552363
}
23562364

23572365
private ServerRequest getInstallOrOpenRequest(BranchReferralInitListener callback) {

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Branch Android SDK change log
2+
- v2.19.1 [09-AUG-18] Fixed GAID fetch issue.
3+
24
- v2.19.0 [03-JUL-18] Support for adding custom install metadata. Fix for an ANR in debug mode. Fix for crash caused by reading user agent. SDK Integration validator.
35

46
- v2.18.1 [17-JUN-18] Fixing issue with facebook app link check caused by incorrect value for facebook_app_link_checked state. Fix for app indexing to run on separate thread.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=2.19.0
1+
VERSION_NAME=2.19.1
22
VERSION_CODE=1
33
GROUP=io.branch.sdk.android
44

0 commit comments

Comments
 (0)