The Tizen privilege account.read is needed to access to account id
for security reason.
Change-Id: If608e7a4d0b6a6a72a309bcfddc33405655761ea
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
}
export function initialize(packageId: string, appId: string, permissions: string[]) {
+ let webapis = global.webapis;
let tizen = global.tizen;
+ if (!permissions.includes("http://tizen.org/privilege/account.read")) {
+ webapis.mde.getCurrentLoginId = () => {
+ console.log('The account.read permission is missing.');
+ }
+ }
+ Object.defineProperties(webapis.mde, {
+ getCurrentLoginId: { writable: false, enumerable: true }
+ });
if (!permissions.includes("http://tizen.org/privilege/alarm")) {
tizen.alarm.add =
tizen.alarm.remove =