SOS App is a cross-platform app that allows the user to send an SOS message with their location to a saved phone number in times of distress.
The main
branch contains the .NET MAUI 6 project used to build the app that gets the coordinates of the phone through the .NET MAUI Essentials Geolocation API and call the SOS Appwrite Function.
The appwrite-function
branch contains the Appwrite Function that reverse geocodes the coordinates to get the address from the Radar Geocoding API and uses Twilio Programmable Message to send an SOS message to predecided number.
appwrite-function
branch for more details on setting up and deploying the function
any
roleNote: In order to enable the .NET runtime for Appwrite Functions, you need to update the
.env
file in the Appwrite installation folder. Find the file and adddotnet-6.0
to the comma-separated list in the environment variable_APP_FUNCTIONS_RUNTIMES
. This will make the .NET runtime available in Appwrite Functions. You can then load the updated configuration using thedocker-compose up -d
command.
SOS\
folder and run the following command
dotnet restore
SOS\Constants
folder and create a class AppwriteConstants.cs
as follows:
namespace SOS.Constants
{
public static class AppwriteConstants
{
public const string AppwriteUrl = "<Enter Appwrite API Endpoint>";
public const string ProjectId = "<Enter Appwrite Project Id>";
public const string FunctionId = "<Enter Appwrite Function Id>";
}
}
Thanks to Freepik for the menu, settings, and sos icons used in the flyout menu in the app