There isn't an standard way of doing it. Is recommendable that you come with your own solution for this, since each game/app you make comes with their unique challenges.