GooglePlus

Adobe AIR native extension

Google Plus AIR Native Extension

The extension is available here: com.distriqt.GooglePlus

Documentation



Setup your Google Project

1. Google Developers Console project
2. Android Certificate Fingerprint
3. Google Identity Options


Setup the Extension

1. Add the Extension
2. Initialise


Usage

1. Setup
2. Signing In/Out
3. Disconnect
4. Sharing a Post


External Links

- ASDocs

Disconnect

Google’s developer policies also require you to provide the ability for a user to disconnect your application from their account. This means your app must provide a way to delete the association between your app and their account. By adding this capability to your app, you can respond to the event and trigger any appropriate logic such as deleting any information you have stored about the user.

GooglePlus.service.addEventListener( GooglePlusEvent.DISCONNECT_SUCCESS, disconnect_successHandler );
GooglePlus.service.addEventListener( GooglePlusEvent.DISCONNECT_FAILED,	 disconnect_failedHandler );

GooglePlus.service.disconnect();
private function disconnect_successHandler( event:GooglePlusEvent ):void
{
	trace( "Disconnect success" );
	//
	//	You should delete any user data here
}

private function disconnect_failedHandler( event:GooglePlusEvent ):void
{
	trace( "Disconnect failed" );
	// You should try again in a small time interval
}