【发布时间】:2020-07-07 01:37:32
【问题描述】:
当应用程序第一次启动时,这是工作,然后从会话中删除应用程序,然后启动应用程序,它说
IRoot 未定义
declare var IRoot: any;
ngOnInit() {
this._platform.ready().then(() => {
if (typeof (IRoot) !== 'undefined' && IRoot) {
IRoot.isRooted((data) => {
if (data && data == 1) {
this.isRootedORJailBreak = true
console.log("*******This is routed device");
} else {
this.isRootedORJailBreak = false
console.log("*******This is not routed device");
}
}, (data) => {
this.isRootedORJailBreak = false
console.log("*******routed device detection failed case", data);
});
});
} }
【问题讨论】:
标签: angular cordova ionic-framework