AppBox Device Info | 앱 기본 정보 및 환경체크 | Appbox SDK 가이드
AppBox Device Info 조회
웹에서 기기 식별자와 푸시 토큰을 함께 사용하는 경우 사용합니다.
AppBox Device Info 가져오기
AppboxSDK.getDeviceInfo()
Javascript
1
// AppBox Device Info 가져오기
2
AppboxSDK.getDeviceInfo(
(err, data) => {
3
if (err) {
4
console.error(
"AppBox Device Info 조회 실패:",
"code:", err.code,
"message:", err.message
);
5
} else {
6
console.log(
"AppBox Device User Id :",
data.deviceUserId);
7
console.log(
"AppBox Push Token :",
data.pushToken);
8
}
9
});
Request 항목 정의
| Request 항목 | 필수여부 | 설명 | 기본값 | |
|---|---|---|---|---|
| - | - | 별도 요청 항목 없음 | - | |
Response 항목 정의
| Response 결과값 | |
|---|---|
| data.deviceUserId | AppBox device user id. 예) "abc123" |
| data.pushToken | FCM push token. 토큰이 없거나 아직 발급되지 않은 경우 빈 문자열 |
| err.code | 에러코드 |
| err.message | 에러 메시지 |