Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async ngOnInit(): Promise {
this.uuid = environment.production ? (await Plugins.Device.getInfo()).uuid : 'test';
this.getNews().subscribe();
}
async getDeviceLanguageCode() {
const code = await Plugins.Device.getLanguageCode();
alert('Language: ' + code.value);
}
}