Skip to content

Commit 9789d50

Browse files
committed
Calling on main thread to avoid issues.
1 parent 144ce73 commit 9789d50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/Plugin/Plugin.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public class GoogleAuth: CAPPlugin {
3737

3838
@objc
3939
func signOut(_ call: CAPPluginCall) {
40-
GIDSignIn.sharedInstance().signOut();
40+
DispatchQueue.main.async {
41+
GIDSignIn.sharedInstance().signOut();
42+
}
4143
call.success();
4244
}
4345

0 commit comments

Comments
 (0)