Skip to content

Commit

Permalink
Add comment explaining the current implementation / execution order
Browse files Browse the repository at this point in the history
  • Loading branch information
tp committed Jun 2, 2020
1 parent 821265e commit 282dadc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ public class SignInWithAppleCallback: Activity {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// Note: The order is important here, as we first need to send the data to Flutter and then close the custom tab
// That way we can detect a manually closed tab in `SignInWithApplePlugin.onActivityResult` (by detecting that we're still waiting on data)
val lastAuthorizationRequestResult = SignInWithApplePlugin.lastAuthorizationRequestResult
if (lastAuthorizationRequestResult != null) {
lastAuthorizationRequestResult.success(intent?.data?.toString())
Expand Down

0 comments on commit 282dadc

Please sign in to comment.