AppBox Device Info | 앱 기본 정보 및 환경체크 | Appbox SDK 가이드

AppBox Device Info 조회

AppBox device user id와 push token을 한 번에 조회할 수 있습니다.
웹에서 기기 식별자와 푸시 토큰을 함께 사용하는 경우 사용합니다.

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 에러 메시지





www.naver.com
QR 코드를 촬영하면 입력하신 주소의
앱 예시 화면을 테스트할 수 있습니다.
* 스캔 후 바로 앱 다운로드 이동합니다.