public static boolean onMessage ( Context context , Intent intent ) { assertInitialized ( context ) ; Bundle messageData = intent . getExtras ( ) ; if ( messageData != null ) { String source = messageData . getString ( C2DMCallback . SOURCE_KEY ) ; if ( source != null && source . trim ( ) . equalsIgnoreCase ( C2DMCallback . SOURCE_SOCIALIZE ) ) { handler . onMessage ( context , intent ) ; return true ; } } return false ; }
Handles a GCM message . Returns true ONLY if this message was intended for Socialize .