السلام عليكم, Maybe you could include a Hijri date counter. It can be pretty simple to implement just a count to twenty-nine and then a reminder and query on whether you saw the moon or not. On the basis of that it resets the count or continues to 30. I must confess this is not my own idea, I just glanced at a prayer time app called Guidance I have on my computer...