Refs #6
To fetch emergency numbers I'm using http://emergencynumberapi.com/ which data can be found and updated if necessary here.
If there is no available data/internet connection I'm just letting a user type it in by hand.
There is also a button which enables to change auto-completed number for a different one.
The API takes a country code as a parameter. First I try to find one via BTS and if that doesn't return anything I use SIM's country code.
Currently, there is the following priority when it comes to choosing a number:
Use 112
Use any other uniform emergency number
Use Police number
Use Ambulance number
On every app start, there is a request for a number sent and compared to the local version. If there are any differences user can:
update the number to a recently fetched
leave the number unchanged
leave the number unchanged and don't notify about changes anymore
Refs #6 To fetch emergency numbers I'm using http://emergencynumberapi.com/ which data can be found and updated if necessary here. If there is no available data/internet connection I'm just letting a user type it in by hand. There is also a button which enables to change auto-completed number for a different one.
The API takes a country code as a parameter. First I try to find one via BTS and if that doesn't return anything I use SIM's country code.
Currently, there is the following priority when it comes to choosing a number:
On every app start, there is a request for a number sent and compared to the local version. If there are any differences user can: