react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.23k stars 881 forks source link

[iOS] No data replied from SignIn function #54

Closed weixingsun closed 8 years ago

weixingsun commented 8 years ago

Hi, thanks for this component, it was working in my project, but something got strange recently in my iOS simulator: after filling the username/password form, clicking on "Allow" button, and confirm dialog of "Open this page in 'YourAppName'?" , even though my user is available in safari, but there's no data reply to my app, the error log says:

Apr 2 00:22:27 VBElCapitan MobileSafari[1051]: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. Apr 2 00:22:29 VBElCapitan assertiond[926]: assertion failed: 15A282b 13E5225a: assertiond + 16726 [8FC7066F-814E-3544-8332-F9079B87DFEF]: 0x1 Apr 2 00:22:29 ElCapitan assertiond[926]: Requesting process (<BKNewProcess: 0x7967ffc0; com.apple.mobilesafari; pid: 1051; hostpid: -1>) is suspended and cannot obtain assertions Apr 2 00:22:29 ElCapitan SpringBoard[922]: [MPUSystemMediaControls] Updating supported commands for now playing application. Apr 2 00:22:34 ElCapitan MobileSafari[1051]: Can't endBackgroundTask: no background task exists with identifier 86, or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. Apr 2 00:23:24 ElCapitan routined[911]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 Apr 2 00:23:37 ElCapitan assertiond[926]: assertion failed: 15A282b 13E5225a: assertiond + 16726 [8FC7066F-814E-3544-8332-F9079B87DFEF]: 0x1

is it a xcode problem or a simulator issue? or maybe I need to change anything in codes/settings ? I run the example again, without any problem, but it happened again when I re-add it into my project Thanks a lot

weixingsun commented 8 years ago

Sorry Guys, I found the root cause, it is due to the [url scheme] not match google format in : ios/Share/AppDelegate.m