sdk/src/com/socialize/launcher/task/NotificationOpenEventTask.java
@Override
	public void execute(Context context, Bundle extras) throws SocializeException {

		try {
			
			if(logger != null && logger.isDebugEnabled()) {
				logger.debug("Recording notification open event...");
			}
			
			final SocializeEvent event = new SocializeEvent();
			event.setBucket("NOTIFICATION_OPEN");
			String json = extras.getString(C2DMCallback.MESSAGE_KEY);
			JSONObject obj = new JSONObject(json);
			event.setData(obj);
			
			notificationAuthenticator.authenticateAsync(context, new SocializeAuthListener() {
				
				@Override
				public void onError(SocializeException error) {
					logError(error);
				}
				
				@Override
				public void onCancel() {}
				
				@Override
				public void onAuthSuccess(SocializeSession session) {
					eventSystem.addEvent(session, event, new EventListener() {
						
						@Override
						public void onError(SocializeException error) {
							logError(error);
						}

						@Override
						public void onPost() {
							if(logger != null && logger.isDebugEnabled()) {
								logger.debug("Notification open event recorded.");
							}							
						}
					});
				}
				
				@Override
				public void onAuthFail(SocializeException error) {
					logError(error);
				}
			});
			
			
		}
		catch (Exception e) {
			throw SocializeException.wrap(e);
		}
	}
@Override
	public void execute(Context context, Bundle extras) throws SocializeException {

		try {
			
			if(logger != null && logger.isDebugEnabled()) {
				logger.debug("Recording notification open event...");
			}
			
			final SocializeEvent event = new SocializeEvent();
			event.setBucket("NOTIFICATION_OPEN");
			String json = extras.getString(C2DMCallback.MESSAGE_KEY);
			JSONObject obj = new JSONObject(json);
			event.setData(obj);
			
			notificationAuthenticator.authenticateAsync(context, new SocializeAuthListener() {
				
				@Override
				public void onError(SocializeException error) {
					logError(error);
				}
				
				@Override
				public void onCancel() {}
				
				@Override
				public void onAuthSuccess(SocializeSession session) {
					eventSystem.addEvent(session, event, new EventListener() {
						
						@Override
						public void onError(SocializeException error) {
							logError(error);
						}

						@Override
						public void onPost() {
							if(logger != null && logger.isDebugEnabled()) {
								logger.debug("Notification open event recorded.");
							}							
						}
					});
				}
				
				@Override
				public void onAuthFail(SocializeException error) {
					logError(error);
				}
			});
			
			
		}
		catch (Exception e) {
			throw SocializeException.wrap(e);
		}
	}
@ Override public void execute ( Context context , Bundle extras ) throws SocializeException { try { if ( logger != null && logger . isDebugEnabled ( ) ) { logger . debug ( "Recording notification open event..." ) ; } final SocializeEvent event = new SocializeEvent ( ) ; event . setBucket ( "NOTIFICATION_OPEN" ) ; String json = extras . getString ( C2DMCallback . MESSAGE_KEY ) ; JSONObject obj = new JSONObject ( json ) ; event . setData ( obj ) ; notificationAuthenticator . authenticateAsync ( context , new SocializeAuthListener ( ) { @ Override public void onError ( SocializeException error ) { logError ( error ) ; } @ Override public void onCancel ( ) { } @ Override public void onAuthSuccess ( SocializeSession session ) { eventSystem . addEvent ( session , event , new EventListener ( ) { @ Override public void onError ( SocializeException error ) { logError ( error ) ; } @ Override public void onPost ( ) { if ( logger != null && logger . isDebugEnabled ( ) ) { logger . debug ( "Notification open event recorded." ) ; } } } ) ; } @ Override public void onAuthFail ( SocializeException error ) { logError ( error ) ; } } ) ; } catch ( Exception e ) { throw SocializeException . wrap ( e ) ; } }
/* (non-Javadoc)
@see com.socialize.launcher.LaunchTask#execute(android.content.Context, android.os.Bundle)
/ * ( non - Javadoc )