Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Ionic 3 pause and resume events triggering multiple times in Android

$
0
0

@mallu123 wrote:

I am facing strange issue in ionic 3 pause and resume events, whenever I paused the application, events are calling multiple times(once 2, once 3 etc). Here is the code

this.platform.ready().then(() => {
 this.platform.pause.subscribe(() => {
     console.log('****UserdashboardPage PAUSED****');
 });
 this.platform.resume.subscribe(() => {
     console.log('****UserdashboardPage RESUMED****');
 });
});

I have tried by placing the same code in ionViewDidLoad, Constructor, ionViewWillEnter still facing same issue. Please anybody help me to get resolve this. I’m calling one service once the app is resumed but now its calling multiple times.Thanks!!

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>