디바이스 모델 | 앱 기본 정보 및 환경체크 | Appbox SDK 가이드
디바이스 모델
특정 모델에서만 발생하는 이슈 대응이나, 기기별 UI 최적화 등에 활용할 수 있습니다.
디바이스 모델 가져오기
AppboxSDK.application.getDeviceModel()
Javascript
1
// 디바이스 모델 가져오기
2
AppboxSDK.application.getDeviceModel(
(err, data) => {
3
if (err) {
4
console.error(
"디바이스 모델 가져오기 실패:",
"code:", err.code,
"message:", err.message
);
5
} else {
6
console.log(
"디바이스 모델 :",
data.result
);
7
}
8
});
Response 항목 정의
| Response 결과값 | |
|---|---|
| data.result | 디바이스 모델 (ex : iPhone 15) |