console.log(`${TAG} failed to get device_ip`);
return;
}
+ let req_id = '';
+ let req_appcontrol = tizen.application.getCurrentApplication().getRequestedAppControl();
+ if (req_appcontrol) {
+ let data = req_appcontrol.appControl.data;
+ data.forEach((bundle) => {
+ if (bundle.key === 'push_reg_id') {
+ req_id = bundle.value[0];
+ return false;
+ }
+ })
+ }
+
const device = {
device_ip: this.device_ip,
device_name: this.device_name,
- login_id: this.login_id
+ login_id: this.login_id,
+ req_id
};
console.log(`${TAG} device :`, device);
const data = JSON.stringify(device);