안드로이드 개발 질문/답변
(글 수 45,052)
GCMRegistrar.isRegisteredOnServer(this)
GCMRegistrar.setRegisteredOnServer(context, false);
이함수들의 역활은 무엇인가요?
OnServer 의 서버라는부분이 구글의 gcm 서버인지
개인의 서버인지...
2013.08.30 12:59:47
구글이 아니라, 개인의 서버 의미하는 것이 아닌가요?
문서에는 이렇게 돼있네요. http://developer.android.com/reference/com/google/android/gcm/GCMRegistrar.html#isRegisteredOnServer(android.content.Context)
Checks whether the device was successfully registered in the server side, as set bysetRegisteredOnServer(Context, boolean).
To avoid the scenario where the device sends the registration to the server but the server loses it, this flag has an expiration date, which is DEFAULT_ON_SERVER_LIFESPAN_MS by default (but can be changed bysetRegisterOnServerLifespan(Context, long)).




구글입니다.