반응형
    
    
    
  앱을 사용하다가
다른 앱을 사용하다가 다시 사용하려고 할때 
이벤트를 잡으려고 할경우엔
app.component.ts 
파일에
| 1 2 3 4 5 6 7 8 9 10 | constructor( private platform: Platform ) { platform.ready().then(() => {         this.platform.pause.subscribe(() => {         console.log('[INFO] App paused');     });     this.platform.resume.subscribe(() => {         console.log('[INFO] App resumed');     }); }); | cs | 
resume.subscribe를 구현하여 그안에
다시 활성화 되었을때 실행할 코드를 기입한다
반응형
    
    
    
  '하이브리드 > 아이오닉' 카테고리의 다른 글
| ionic 파일구조 설명 (0) | 2018.05.27 | 
|---|---|
| 아이오닉 실행방법 (0) | 2018.05.27 | 
| ionic back button 제거 (0) | 2018.05.27 | 
| ionic2 현재 플랫폼 확인 방법 (0) | 2018.05.27 | 
| UI 요소 동적으로 disabled 처리 (0) | 2018.05.27 |