﻿# Demophone

Download Acrobits Demophone to explore the VoIP features and functionality offered by Acrobits.
If you plan to integrate libSoftphone SDK into your own project, Demophone is a useful reference implementation for validating the SDK capabilities.

Demophone demonstrates the fundamentals required to build a SIP application:

- SIP account management
- SIP registration management
- Push notifications
- VoIP call handling, including initiating, answering, terminating, and observing call events

## Installing Android Demophone { #android-register-a-license }

The Demophone project for Android is available on GitHub.

1. Register an account and obtain a valid license key on [saas.acrobits.net](https://saas.acrobits.net/).
2. Clone the Android Demophone repository:

   ```bash
   git clone https://github.com/acrobits/android-demophone.git
   ```

3. Open the project in your editor.
4. Enter your license key in the project's `gradle.properties` file and replace the **app id** and **license key** placeholders with the values obtained in [step 1](#android-register-a-license).

!!! important
    Demophone works only with a valid license key activation.

5. Download and build the project.
6. Configure push notifications by following [Android Push notifications](../pushes/android.md#android-push-notifications).

## Installing iOS Demophone for Swift { #ios-swift-register-a-license }

The Swift-based iOS Demophone project is available on GitHub.

1. Register an account and obtain a valid license key on [saas.acrobits.net](https://saas.acrobits.net/).
2. Clone the iOS Demophone repository:

   ```bash
   git clone https://github.com/acrobits/ios-demophone.git
   ```

3. Open the project in your editor.
4. Add the Swift package required by the project.
5. Enter your license key obtained in [step 1](#ios-swift-register-a-license) into `provisioning.xml`.

!!! important
    Demophone works only with a valid license key activation.

6. Download and build the project.
7. Configure push notifications by following [iOS Push notifications](../pushes/ios.md#ios-push-notifications).

## Installing iOS Demophone for Objective-C { #ios-objc-register-a-license }

The Objective-C-based iOS Demophone project is available on GitHub.

1. Register an account and obtain a valid license key on [saas.acrobits.net](https://saas.acrobits.net/).
2. Clone the iOS Demophone repository:

   ```bash
   git clone https://github.com/acrobits/ios-demophone.git
   ```

3. Download and set up the SDK:

   1. Go to [dist.acrobits.net/saas/dl.php](https://dist.acrobits.net/saas/dl.php).
   2. Under **FILES**, download the latest SDK file.
      The file name follows the `libsoftphone_SaaS-x.x.xx.zip` convention. Choose the latest dated build.
   3. Extract the ZIP file and open the **Frameworks** folder inside it.
   4. Copy the **Frameworks** folder into the same directory as the `demophone-objc` folder.
   5. Select **Clean and Build** for the project.
   6. Select **Run**.

4. Open the project in your editor.
5. Enter your license key obtained in [step 1](#ios-objc-register-a-license) into `provisioning.xml`.

!!! important
    Demophone works only with a valid license key activation.

6. Download and build the project.
7. Configure push notifications by following [iOS Push notifications](../pushes/ios.md#ios-push-notifications).