C2dm 구현시 BroadcastReceiver 에서
intent.getStringExtra("unregistered") 값이 null 이 아닌 경우의 상황이 궁금하네요
c2dm 등록 해제시 값이 null 이 아닌 거 같은데. 개발자가 직접 해제를 구현하는 건가요?
감사합니다.
private void unregistrationOnC2DM() {
Intent unregIntent = new Intent("com.google.android.c2dm.intent.UNREGISTER");
unregIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
startService(unregIntent);
}
를 이용해 등록 해지를 하시면 됩니다.
로그인 유지
private void unregistrationOnC2DM() {
Intent unregIntent = new Intent("com.google.android.c2dm.intent.UNREGISTER");
unregIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
startService(unregIntent);
}
를 이용해 등록 해지를 하시면 됩니다.