Geofence on notification clicked is not synchronous?


#1
this.geofence.onNotificationClicked().subscribe( res =>{
});

I have written the above method in constructor.But before this method triggers ionviewdidload is triggering.The main issue is based on nativestorage data I am showing some cards.If the new geofence notification found i am going to update the nativestorage data and with ionviewdidload too.If ionviewdidload triggers before onnotification clicked it’s going to load the previous content.How can i handle this?