By: Ali Mir
Check out version here.
Islam requires that Muslims pray 5 times a day. These prayers (i.e. Salah) cannot be prayed just at any times. They are to be prayed on specific times. The following are the 5 obligatory daily prayers along with corresponding time that a Muslims can start the prayer:
- Fajr: When the sky begins to lighten (dawn).
- Dhuhr: When the Sun begins to decline after reaching its highest point in the sky.
- Asr: The time when the length of any object's shadow reaches a factor (usually 1 or 2) of the length of the object itself plus the length of that object's shadow at noon.
- Maghreb: Soon after sunset.
- Isha: The time at which darkness falls and there is no scattered light in the sky.
Fajr prayer begins at as per the above timing but it is permissible to pray anytime BEFORE sunrise. Dhuhr and Asr should to be prayed before sunset. Maghreb and Isha must be prayed before midnight. (Note: I'm simplifiying prayer time rulings here for non-Muslims to better understand. There are different opinions amongst Islamic scholars!).
You can learn more about Islamic prayer times on the following website: http://praytimes.org/wiki/Prayer_Times_Calculation
My main focus was to build an app that makes it easy for Muslims to wake up for Fajr time. The reason being that Muslims typically use an alarm clock to wake up for Fajr prayer.
There are many great Islamic prayer time alarm clock apps out there. This app is different in that:
- It not only can alarm at Fajr time but also any time between Fajr and sunrise (which is important since many Muslims perfer to pray Fajr for example 20 mins before sunrise).
- You can have multiple alarms around the Fajr and sunrise timing. Some Muslims wake up to pray night prayers some time before Fajr and then pray Fajr on time.
- Alarm sounds have more variety.
- Alarm times are autmocally updated daily.
... and more
This is the first fully functional iPhone app that I created. Before creating this app, I was taking courses on iOS Develompent with Swift through Treehouse. As I was taking the Treehouse courses, this idea just came to my mind and thus Fajr Wake was created. Much of the code could have been written differently for more efficiency and best practices were not always implemented. This is the first app I made as I was learning iOS development. When I have time I plan on making some changes.
Loction services
This website was very helpful to me on so many levels. I used this repo for calculating prayer times.
![alt text] (https://github.com/alimir1/FajrWake/blob/master/Screen%20Shot%202016-10-04%20at%202.08.25%20PM.png?raw=true "Fajr Wake")