iOS API Reference
recevieMessage
– (NSString*)recevieMessage:(NSDictionary*)msg;
기능 AppDelegate(didReceiveRemoteNotification)에서 받은 메세지 내용을 가져옵니다.
변수 msg : 보내진 푸시의 정보(NSDictionary)
결과 메세지 문구
//메세지 내용을 가져온다.
(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
NSString *message = [_fingerManager recevieMessage:userInfo];
}receviveBadge
– (NSInteger)receviveBadge:(NSDictionary*)msg;
기능 AppDelegate(didReceiveRemoteNotification)에서 받은 메세지에서 뱃지값을 가져옵니다.
변수 msg : 보내진 푸시의 정보(NSDictionary)
결과 posts : 뱃지수
receviveMessageTag
– (NSString*)receviveMessageTag:(NSDictionary*)msg;
기능 AppDelegate(didReceiveRemoteNotification)에서 받은 메세지에서 메세지태그값을 가져옵니다.
변수 msg : 보내진 푸시의 정보(NSDictionary)
결과 메세지태그
registerUserWithBlock
– (void)registerUserWithBlock:(NSData *)token :(void (^)(NSString *posts, NSError *error))block;
DeviceToken 은 OS에 의해 변경될 수 있습니다. 따라서, 앱 실행 시마다 호출해야 합니다.
기능 핑거푸시 서버에 기기 토큰값을 저장하는 매서드 입니다.
변수 token : 토큰값 didRegisterForRemoteNotificationsWithDeviceToken에서 받은 deviceToken(NSData)로 입력
결과 posts : 결과코드 값 리턴
requestGetAllTagListWithBlock
– (void)requestGetAllTagListWithBlock:(void (^)(NSArray *posts, NSError *error))block;
기능 앱에 등록된 모든 태그(그룹)명 조회합니다.
변수
결과 posts : 결과코드 error : error내용
requestGetAppReportWithBlock
– (void)requestGetAppReportWithBlock:(void (^)(NSDictionary *posts, NSError *error))block;
기능 핑거푸시의 등록된 앱의 버전 정보 등 모든 정보를 가져옵니다.
변수
결과 posts : 결과코드 error : error내용
requestGetDeviceTagListWithBlock
– (void)requestGetDeviceTagListWithBlock:(void (^)(NSArray *posts, NSError *error))block;
기능 기기가 등록된 태그명 리스트를 조회합니다.
변수
결과 posts : 태그리스트(Array) error : error내용
requestPushCheckWithBlock
– (void)requestPushCheckWithBlock:(NSDictionary*)param :(void (^)(NSString *posts, NSError *error))block;
기능 통계를 위한 메세지 수신확인 서버에 보내는 매서드 입니다.
변수 param : 푸시 메세지 리스트에서 받은 메세지
결과 posts : 결과 코드
requestPushContentWithBlock
-(void)requestPushContentWithBlock:(NSString*)strMsgTag :(NSString*)strMsgMode :(void (^)(NSDictionary *posts, NSError *error))block;
기능 핑거푸시 서버에서 발송된 푸시 내용을 가져옵니다.
변수 strMsgTag : 보내진 푸시의 고유 태그 strMsgMode : 보내진 푸시 메세지의 모드(DEFT,LNGT,STOS)
결과 posts : 보낸메세지(NSDictionary) 내용
requestPushContentWithBlock
– (void)requestPushContentWithBlock:(NSDictionary*)param :(void (^)(NSDictionary *posts, NSError *error))block;
기능 핑거푸시 서버에서 보내진 푸시 내용을 가져옵니다.
변수 param: 푸시 메세지 리스트에서 받은 메세지
결과 posts : 보낸 메세지(NSDictionary) 내용
requestPushInfoWithBlock
– (void)requestPushInfoWithBlock:(void (^)(NSDictionary *posts, NSError *error))block;
기능 기기 설정 정보를 요청합니다.
변수
결과 posts : 해당 기기 설정 정보
requestPushListPageWithBlock
– (void)requestPushListPageWithBlock:(int)page Cnt:(int)cnt :(void (^)(NSDictionary *posts, NSError *error))block;
기능 서버에서 보내진 푸시 리스트를 페이징으로 요청합니다.
변수 page : 호출할 페이지 cnt : 한 페이지에 리스트 갯수
결과 posts : 보낸 메세지(NSDictionary)의 내역(NSArray) 리스트
메시지 모드 DEFT : 일반 푸시 짧은 텍스트 LNGT : 일반 푸시 긴 텍스트 STOS : 서버투서버
requestPushListWithBlock
– (void)requestPushListWithBlock:(void (^)(NSArray *posts, NSError *error))block;
기능 서버에서 발송된 푸시 리스트를 요청합니다.
변수
결과 posts : 보낸메세지(NSDictionary)의 내역(NSArray) 리스트
메시지 모드
DEFT : 일반 푸시 짧은 텍스트
LNGT : 일반 푸시 긴 텍스트
STOS : 서버투서버
requestRecevieImgWithBlock
– (void)requestRecevieImgWithBlock:(NSDictionary*)msg :(void (^)(NSData *posts, NSError *error))block;
기능 푸시 리스트나 푸시 내용에서 이미지를 가져옵니다.
변수 msg : 보내진 푸시의 정보(NSDictionary)
결과 posts : 이미지 데이터
requestRegIdWithBlock
– (void)requestRegIdWithBlock:(NSString*)param :(void (^)(NSString *posts, NSError *error))block;
기능 기기의 아이디를 설정합니다.(타겟팅 푸시에서 사용)
변수 param : 등록할 아이디명(아이디 길이는 50byte이내)
결과 posts : 결과코드 error : error내용
requestRegUniqIdWithBlock
– (void)requestRegUniqIdWithBlock:(NSString*)identity isAlram:(BOOL)isAlram msg:(NSString*)AlramMsg :(void (^)(NSString *posts, NSError *error))block;
requestRegIdWithBlock을 사용하다 requestRegUniqIdWithBlock로 변경하시면 타켓팅 푸시 수신이 정상적으로 안될 수 있습니다.
기능 기기의 고유 식별자(아이디)를 설정합니다.(다른 기기에 등록된 식별자는 삭제됩니다.)
변수 identity : 등록할 식별자명(아이디 길이는 50byte이내) isAlram : 기존에 등록된 식별자(삭제될 기기)에 메세지(삭제안내) 발송 여부 AlramMsg : 기존에 등록된 식별자(삭제될 기기)에 메세지(삭제안내) 내용. nil 거나 @"" 일 경우 기본메세지 내용으로 발송 기본메세지 : "다른 기기에서 식별자가 설정 되었습니다."
결과 posts : 결과코드 error : error내용
requestInitTagWithBlock
– (void)requestInitTagWithBlock:(NSArray*)param :(void (^)(NSString *posts, NSError *error))block;
기능 기기의 태그(그룹)를 설정합니다. 빈 값 또는 null 입력 시 설정된 모든 태그를 제거합니다.
변수 param : 등록할 그룹명(NSArray)
결과 posts : 결과코드 error : error내용
requestAddTagWithBlock
– (void)requestAddTagWithBlock:(NSArray*)param :(void (^)(NSString *posts, NSError *error))block;
기능 기기의 태그(그룹)를 추가합니다.
변수 param : 등록할 그룹명(NSArray)
결과 posts : 결과코드 error : error내용
requestRemoveIdWithBlock
– (void)requestRemoveIdWithBlock:(void (^)(NSString *posts, NSError *error))block;
기능 기기의 아이디를 삭제합니다.(서버투서버에서 사용)
변수
결과 posts : 결과코드 error : error내용
requestRemoveTagWithBlock
– (void)requestRemoveTagWithBlock:(NSArray*)param :(void (^)(NSString *posts, NSError *error))block;
기능 기기의 태그(그룹)를 삭제합니다.
변수 param : 삭제 할 그룹명(NSArray)
결과 posts : 결과코드 error : error내용
requestSetAdPushEnable
– (void)requestSetAdPushEnable:(BOOL)is_ :(void (^)(NSString *posts, NSError *error))block;
푸시 수신(setEnable) 여부가 활성화된 상태에서만 광고 푸시가 수신됩니다.
기능 푸시 광고수신 활성화 on-off 가능
변수 is_ : YES - 활성화 , NO – 비활성화
결과 posts : 결과코드 error : error내용
setEnable
– (void)setEnable:(BOOL)is_ :(void (^)(NSString *posts, NSError *error))block;
기능 푸시 활성화 on-off 가능
변수 is_ : YES - 활성화 , NO – 비활성화
결과 posts : 결과코드 error : error내용
receviveCode
+ (NSDictionary*)receviveCode:(NSDictionary*)msg;
기능 AppDelegate(didReceiveRemoteNotification)에서 받은 푸시 메세지에서 푸시 정보를 NSDictionary형태로 가져옵니다.
변수 msg : 보내진 푸시의 정보(NSDictionary)
결과 posts : (NSDictionary*) 푸시 정보 예) CD:0; //앱링크 존재 여부(1:있음 0:없음) IM:0; //이미지 존재 여부(1:있음 0:없음) WL:0; //웹링크 존재 여부(1:있음 0:없음) PT:DEFT; //메세지 타입(DEFT:일반푸시, STOS:Server to Server, LNGT:롱푸시)
keyChainNotUse
+ (void)keyChainNotUse
기능 키체인 미사용(defualt 키체인 사용) 앱 시작 시 해당 API를 호출하면, 앱 삭제 후 재설치 시 이전 설치에서 설정한 데이터(identity, tag, list 등)들을 가져오지 못하고 새로운 기기로 인식합니다. 다시 키체인을 사용할 경우 +(void)keyChainUse를 사용합다.
Last updated