Ionic 4 global popup/bar with data and action

Hi,
I want to build and application where if user click on a product button a timer (2 min) will start (in any place, header and footer will be ok ) with the clicked product data (like id) and user can surf through other page during the running time and they can check the time ruining.

Popup/Bar must include 2 action yes/no and the running time and when user click on yes/no i need a callback so i can trigger some function to save the data.

During the the running time product button must be disabled.

  1. create a component for display the timer with an event listener.
  2. create a provider (service) to store to product info.

Logic flow:
when user click product button, call provider and create event and component show the count down.

1 Like

Thanks your idea works.