안드로이드 개발 질문/답변
(글 수 45,052)
다른 앱에서 타 앱에서 발생한 푸쉬 서비스를 끄는 방법을 찾고 있습니다.
타 앱의 패키지명이 com.PushTest 이고 이 앱의 패키지명은 com.test라고 할때,
클릭 이벤트가 발생할 때 다음의 코드를 실행시키도록 했습니다.
//com.test.Main 클릭이벤트
Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.putExtra("app", "com.PushTest"); //app ID
registrationIntent.putExtra("sender", "xxxxxx@gmail.com"); //developer ID
stopService(registrationIntent);
너무 간단하게 해보려고 했는지; 꺼지질 않네요..
타 앱에서 푸쉬 서비스를 끄는 것이 가능할까요? 가능하다면 어떤 방법이 있을까요..
도움 부탁드립니다. 좋은 하루 되세요~!