You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use your plugin in an iOS app and managed Google+ to correctly redirect back to the app after authentication. However, I found that handling of the redirect URL was completely missing from the plugin.
In the entry point to the app (in AppDelegate.m): -(BOOL)application: (UIApplication *)application openURL: (NSURL *)url sourceApplication: (NSString *)sourceApplication annotation: (id)annotation { ... }
... the redirect URL needs to be handled. However, the default functionality of Cordova that is called in this entry point:
... only provides the means to propagate the url (or is expected to only provide the url), and not the sourceApplication and the annotation, while this is required to handle the url:
Hello,
Thank you for sharing this plugin.
I was trying to use your plugin in an iOS app and managed Google+ to correctly redirect back to the app after authentication. However, I found that handling of the redirect URL was completely missing from the plugin.
In the entry point to the app (in AppDelegate.m):
-(BOOL)application: (UIApplication *)application openURL: (NSURL *)url sourceApplication: (NSString *)sourceApplication annotation: (id)annotation { ... }
... the redirect URL needs to be handled. However, the default functionality of Cordova that is called in this entry point:
... only provides the means to propagate the url (or is expected to only provide the url), and not the sourceApplication and the annotation, while this is required to handle the url:
So, I solved it as follows. In the entry point to the app, I added:
... and subsequently added functionality to the plugin to keep the isSigningIn state.
Was I missing something, or do you maybe have a better solution in mind?
Thanks in advance!
-- Freddy
The text was updated successfully, but these errors were encountered: