code: @Override
  	public void onReceiveNotification(ApptentiveNotification notification) {
  		checkConversationQueue();
  
  		if (notification.hasName(NOTIFICATION_INTERACTIONS_SHOULD_DISMISS)) {
  			dispatchOnMainQueue(new DispatchTask() {
  				@Override
  				protected void execute() {
  					dismissActivity();
  				}
  			});
  		} else if (notification.hasName(NOTIFICATION_CONVERSATION_STATE_DID_CHANGE)) {
  			final Conversation conversation = notification.getUserInfo(NOTIFICATION_KEY_CONVERSATION, Conversation.class);
  			Assert.assertNotNull(conversation, "Conversation expected to be not null");
  			if (conversation != null && !conversation.hasActiveState()) {
  				dispatchOnMainQueue(new DispatchTask() {
  					@Override
  					protected void execute() {
  						dismissActivity();
  					}
  				});
  			}
  		}
  	}
docs: region ApptentiveNotificationObserver