<!-- 핸드폰으로 보내주는 데이터 -->
{
	"to":"!!!핸드폰 인스턴스 ID!!!",
	"priority":"high",
	"notification":{
		"body":"body!!",
		"title":"title!!!"
	},
	"data":{
		"title":"data title",
		"message":"message !!!"
		"id":"secure"
	}
}

Foreground 상태일 때는 받는데 문제가 없는데 Background 상태일 때는 서비스에서 못 받음

 

<!-- 핸드폰으로 보내주는 데이터 -->
{
	"to":"!!!핸드폰 인스턴스 ID!!!",
	"priority":"high",
	"data":{
		"title":"data title",
		"message":"message !!!"
		"id":"secure"
	}
}

요렇게 data로 전달해야 Background 일 때 서비스에서 수신 가능.

:
  
private OnTouchListener listener = new OnTouchListener() {
		
	@Override
	public boolean onTouch(View v, MotionEvent event) {
		v.getParent().requestDisallowInterceptTouchEvent(true);
		return false;
	}
};
: