Ti.GoogleSignIn is an open-source project to support the Google SignIn android-SDK in Appcelerator's Titanium Mobile.
- Titanium Mobile SDK 6.0.1.GA or later
Unpack the module and place it inside the modules/android/
folder of your project.
Edit the modules section of your tiapp.xml
file to include this module:
<modules>
<module platform="android">ti.googlesignin</module>
</modules>
Initialize the module by setting the Google SignIn API key you can get from the Google API Console.
var Google = require('ti.googlesignin');
Google.initialize({
clientId: '<client-id>',
});
-
signIn
-
signOut
-
onsuccess
-
onerror
-
onsignout