public class PushToken extends Object
Constructor and Description |
---|
PushToken() |
Modifier and Type | Method and Description |
---|---|
static void |
clearRegistrationId()
푸시 서버로 토큰 삭제를 성공한 후에 기기에도 삭제한다.
|
static String |
getRegistrationId(Context context)
기기에 저장된 푸시 토큰을 얻어 온다.
|
static void |
savePushTokenToCache(String regId,
int appVer,
Integer expiresIn)
푸시 서버로 토큰 등록을 성공한 후에 기기에도 다음번 푸시 토큰을 얻어올 때 GCM으로부터 다시 얻어 오지 않아도 되도록 저장한다.
|
Copyright © 2015 Kakao Corp. All rights reserved.