Skip to content

Commit 0b82c08

Browse files
committed
fix: android custom tabs dismiss callback called before deeplink
1 parent d2f4527 commit 0b82c08

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Plugins/Android/ImmutableAndroid/ImmutableAndroid/src/main/java/com/immutable/unity/ImmutableActivity.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ public void onNavigationEvent(int navigationEvent, @Nullable Bundle extras) {
102102
// set to null before the SDK can use it to notify the consumer of the PKCE result.
103103
// See PassportImpl.OnLoginPKCEDismissed and PassportImpl.OnDeepLinkActivated
104104
final Handler handler = new Handler(Looper.getMainLooper());
105-
handler.postDelayed(new Runnable() {
106-
@Override
107-
public void run() {
105+
handler.postDelayed(() -> {
106+
if (uri != null) {
108107
callbackInstance.onCustomTabsDismissed(uri.toString());
109108
}
110-
}, 1000);
109+
}, 2500);
111110
}
112111
}
113112
});
Binary file not shown.

0 commit comments

Comments
 (0)