我安装了backgroundMode,backgroundGeolocation和失眠症,但我还在拼命工作。
我很想花钱请人帮忙。
求你了,大师,帮帮我
home.ts
constructor(public navCtrl: NavController,
public navParams: NavParams,
public member:Member,
public journey: Journey,
public backgroundMode: BackgroundMode,
public insomnia: Insomnia,
platform: Platform) {
platform.ready().then(() => {
this.backgroundMode.enable();
this.insomnia.keepAwake()
.then(
() => console.log('success'),
() => console.log('error')
);
});
this.member.onLoggedIn.subscribe(
(data) => {
this.memberLoggedIn();
}
);
this.member.onLoggedOut.subscribe(
(data) => {
this.memberLoggedOut();
}
);
}发布于 2017-08-29 20:09:03
我唯一能解决这个问题的办法是关掉手机上的节电模式:
https://stackoverflow.com/questions/45872700
复制相似问题