IntentActionActivity
Notification 알림 메시지 처리, RemoteConfig 제외
onCreate
notification data에 포함된 값을 bundle로 받아 처리한다.
push type에 맞게 분기한다.
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_intent_action)
var moveUrl: String = ""
var outMoveURl:String = ""
var pushType = ""
var configState:Boolean = false
val bundle = intent.extras
if (bundle != null) {
moveUrl = bundle.getString("thecamp_url")?:""
outMoveURl = bundle.getString("out_url")?:""
pushType = bundle.getString("push_type")?:""
}
//TODO 타입에 맞게 이벤트 로직 수정
if(pushType.equals("301")){
val intent = Intent(this, MainWebViewActivity::class.java)
intent.putExtra("url", moveUrl)
startActivity(intent)
finish()
}else if(pushType.equals("401")){
val intent = Intent.parseUri(outMoveURl, Intent.URI_INTENT_SCHEME)
startActivity(intent)
finish()
}else{
Log.i(TAG, "===== push type empty ====")
}
}