---
updatedAt: 2025-07-15T08:42:38.000Z
agentTools:
  projectIndex: https://docs.appery.io/llms.txt
---

# Adding Push Notification Services

This document demonstrates how to add the predefined Push Notification services to an Ionic application.

# Introduction

The predefined **Push Notification** services that can be added to your Ionic mobile app include:

* ***[Device Add Channel](https://docs.appery.io/docs/adding-push-notification-services#adding-device-add-channel-service)***
* ***[Device ID](https://docs.appery.io/docs/adding-push-notification-services#adding-device-id-service)***
* ***[Device Info](https://docs.appery.io/docs/adding-push-notification-services#adding-device-info-service)***
* ***[Device Register](https://docs.appery.io/docs/adding-push-notification-services#adding-device-register-service)***
* ***[Device Remove Channel](https://docs.appery.io/docs/adding-push-notification-services#adding-device-remove-channel-service)***
* ***[Device Unregister](https://docs.appery.io/docs/adding-push-notification-services#adding-device-unregister-service)***
* ***[Device Update](https://docs.appery.io/docs/adding-push-notification-services#adding-device-update-service)***
* ***[Send Push Notification](https://docs.appery.io/docs/adding-push-notification-services#adding-device-send-notification-service)***.

# Setting Push Notifications App

1. To get access to the predefined **Push Notification** services, we will need to create a new [blank](https://docs.appery.io/docs/ionic-5-app-templates#ionic-5-blank) Ionic app first.
2. When in the app, first, press **CREATE NEW > Backend Services** to see that the **Push Service** sub-menu is absent from the list:

<Image align="center" className="border" border={true} src="https://files.readme.io/c1555c4-small-2023-05-09_21-30-02.png" />

3. So, click the **[Push](https://docs.appery.io/docs/pushnotifications-configuration#enabling-in-backend-services)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the **Push Notifications** settings page for this app:
4. Arrange so that needed [**Push Notifications** Settings](https://docs.appery.io/docs/pushnotifications-configuration#push-notifications-settings) are defined for the app:

<Image align="center" className="border" border={true} src="https://files.readme.io/a8cc83d-small-2023-05-09_21-32-17.png" />

> 🚧 Testing on Device!
>
> Note that to be able to receive **Push Notification** messages, you need to build (`.apk` / `.aab` for [Android](https://docs.appery.io/docs/appexport-android) or `.ipa` for [iOS](https://docs.appery.io/docs/appexport-ios)) and [install](https://docs.appery.io/docs/push-notifications-for-ionic-5-app#installing-app-on-device) it on your device.

5. Enable the **PushPlugin** check box under the **[Core Cordova Plugins](https://docs.appery.io/docs/cordova-overview#core-cordova-plug-ins)** tab of the **App Settings** sub-menu:

<Image align="center" className="border" border={true} src="https://files.readme.io/6be1a6f-small-2023-05-09_21-33-39.png" />

6. Now, click the **SAVE** and **CLOSE** buttons of the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** and then reopen the app and click the **CREATE NEW** button to see that the Appery.io backend push services can now be imported from under the **Backend Services** section:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/8c4379e-2022-04-04_15-48-29.png" />

7. This means you are all set now and can now start working with the predefined services: click **Push Service** to open the **Create new service** modal window with the following push services options to be selected:

* ***Device Add Channel***
* ***Device ID***
* ***Device Info***
* ***Device Register***
* ***Device Remove Channel***
* ***Device Unregister***
* ***Device Update***
* ***Send Push Notification***:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/df552a2-2022-04-04_15-49-31.png" />

# Adding *Device Register* Service

1. In the the **Create new service** window, select the **Device Register** service and click the **Create Service** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/84a074b-04-04_15.57..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushDeviceRegister*** service has been added. Also, the **TypeScript > PushNotifications** folder contains the ***PushDeviceRegister\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/cb7d5ac-04-04_16.13..png" />

2. Go to the **Screen1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and add the **[Button](https://docs.appery.io/docs/button)** component to the editor.
3. To make the app UI more well-round, first, click on the **[Toolbar title](https://docs.appery.io/docs/ionic-5-ui-components-properties#toolbar-title)** in the app screen and change it to ***Push Service App*** by changing the **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu.
4. Now, select the **[Page](https://docs.appery.io/docs/screens-and-tabs#pages-screens)** component from the breadcrumbs (you can also use the **[OUTLINE](https://docs.appery.io/docs/creating-app-ui-palette#outline-view)** view to locate the needed component) and set the page **[Footer](https://docs.appery.io/docs/2-creating-an-app-ui-pages-and-tabs#properties-1)** property to ***False*** as we will not use it in the app (you will also be asked to confirm changing the property):

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/b98ffbf-2022-04-13_16-46-29.png" />

5. Then, select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to ***Register Device***:

<Image align="center" className="border" border={true} src="https://files.readme.io/5a33e43-small-2023-05-09_21-40-36.png" />

6. Open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushDeviceRegister*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/202e4dc-2022-04-13_16-18-08.png" />

7. To invoke the ***Present alert*** action, click the **Add** button of the ***Success*** service and then fill the **Message** field with ***Registration success***.\
   Also, enable the **Cancel Role** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/5521eba-2022-04-13_16-20-28.png" />

8. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel, and for the ***Click*** event of the **Register Device** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then set the ***PushDeviceRegister1*** value from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/ce08965-small-2023-05-09_21-41-47.png" />

9. You can now click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview.
10. Click the **Register Device** button to see that the **Registration success** message appears:

<Image align="center" className="border" width="30% " border={true} src="https://files.readme.io/0a6dd82-1.gif" />

11. Now, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the linked database and then go to its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection.\
    The columns **id**, **deviceID**, and **token** should be filled with data:

<Image align="center" className="border" border={true} src="https://files.readme.io/f12581c-2022-04-13_16-30-18.png" />

12. Now, [export](https://docs.appery.io/docs/appexport-overview) the app as an Android binary by clicking **EXPORT > Android Binary** (both **iOS** and **Android** options are available) in the top menu to [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) it on the device:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/2ced351-Export.png" />

13. Open the app on the device and click the **Register Device** button.
14. To make sure the database records are updated, go back to the predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection and refresh it: the table should be updated with the data of your test Android mobile device:

<Image align="center" className="border" border={true} src="https://files.readme.io/85454e0-2022-04-13_17-45-34.png" />

15. You are free to experiment with [exporting](https://docs.appery.io/docs/appexport-overview) the app as an iOS binary as well by clicking **EXPORT > iOS Binary** in the top menu. In this case, after you [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) the app on the device and click the **Register Device** button the database **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection should be updated with a new record of the registered iOS device after you click **Refresh**:

<Image align="center" className="border" border={true} src="https://files.readme.io/ab7d314-2022-04-13_18-42-53.png" />

> 👍 Important Note!
>
> Please note that you will need to generate the [iOS certificate](https://docs.appery.io/docs/appexport-ios#generating-ios-certificates) with the [In-App Purchase capability](https://developer.apple.com/in-app-purchase/) to build an `.ipa` file.\
> You can check [this](https://docs.appery.io/docs/appexport-ios) document in case you need help with exporting your application for iOS.\
> [Here](https://docs.appery.io/docs/appexport-android#android-certificate-file), you will find information on generating certificates for Android.\
> Note as well that starting from *August 2021*, new apps are required to publish with the [Android App Bundle](https://developer.android.com/guide/app-bundle) (`.aab`) on *Google Play*.\
> Please read more [here](https://developer.android.com/guide/app-bundle).\
> You can also check this [Appery.io YouTube](https://www.youtube.com/@apperyio) video that shows how to create Android and iOS certificates:

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/aMS4T0snEeA" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

> 🚧 Note!
>
> Note as well that before you can proceed with exporting your production app, you will need to go to **Project view > Project > App settings >[Android binary](https://docs.appery.io/docs/appbuilder-app-settings#android-binary)/[iOS binary](https://docs.appery.io/docs/appbuilder-app-settings#ios-binary)** to select the **Release** or **[Release and Publish](https://docs.appery.io/docs/appexport-ios#release-and-publish-building)** (for iOS) build type (**Debug** is the default type for both and can be used for testing purposes only):

<Image align="center" className="border" border={true} src="https://files.readme.io/ac214b8-2022-11-27_17-30-22.png" />

# Adding *Device ID* Service

Now, let's update our app and add the ***Device ID*** service to it.

1. Click the **CREATE NEW** button and select **Push service** under the **Backend Services** section.
2. In the the **Create new service** window, select the **Device ID** service and click the **Create Service** button:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/fb94eae-04-13_18.50..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushDeviceID*** service has been added to the list. Also, the **TypeScript > PushNotifications** folder contains the ***PushDeviceID\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/fc2730f-2022-04-13_17-17-16.png" />

3. Go back to the **Screen1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and add the **[Button](https://docs.appery.io/docs/button)** and **[Input](https://docs.appery.io/docs/input)** components to the editor.
4. Select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to ***Get Device ID***.
5. Now, select the **[Input](https://docs.appery.io/docs/input)** component  and change its **Label Text** field to ***DeviceID***:

<Image align="center" className="border" border={true} src="https://files.readme.io/f58532c-small-2023-05-09_21-44-53.png" />

6. Next, open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushDeviceID*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/d80f04f-2022-04-13_18-54-20.png" />

7. In the open mapping editor window, click the service ***Success > Mapping*** button, create the following mapping and click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/3e585d7-2022-04-13_18-58-17.png" />

8. To invoke the ***[Present alert](https://docs.appery.io/docs/5-event-handling#present-alert)*** action, click the **Add** button of the ***Success*** service and then fill the **Message** field with ***Device ID is displayed***.\
   Also, enable the **Cancel Role** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/38679d4-2022-04-13_18-59-27.png" />

9. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel, and for the ***Click*** event of the **Get Device ID** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then set the ***PushDeviceId*** value from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/29632c3-small-2023-05-09_21-46-12.png" />

10. Click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview.
11. Click the **Get Device ID** button. The **deviceID** field is filled with the ***test\_device*** value. Also, the message **Device ID is displayed** should be displayed:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/4df4eba-2.gif" />

12. Now, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** and go to the linked database and open its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection.\
    The value from the **deviceID** column should correspond to the value **DeviceID** field on preview:

<Image align="center" className="border" border={true} src="https://files.readme.io/0df4d52-2022-04-13_19-05-23.png" />

13. Now, [export](https://docs.appery.io/docs/appexport-overview) the app as an Android binary by clicking **EXPORT > Binary** (both **iOS** and **Android** options are available) in the top menu to [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) it on the device:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/6f30877-Export.png" />

14. Open the app on the device and click the **Get Device ID** button to see that the **deviceID** field is now filled with your device's data:

<Image title="Screenshot_20220413-195842_PN Services.jpg" alt={1080} align="center" width="50% " border={true} src="https://files.readme.io/cb31037-Screenshot_20220413-195842_PN_Services.jpg">
  Android Device ID displayed on the device screen
</Image>

15. To make sure the database records are also updated, go back to the predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection and refresh it: the table should be updated with the data of your test Android and/or iOS mobile device(s):

<Image title="2022-04-13_20-33-51.png" alt={1106} align="center" border={true} src="https://files.readme.io/8ca4606-2022-04-13_20-33-51.png">
  Android Device ID in the Database
</Image>

# Adding *Device Add Channel* Service

1. In the **Create new service** window, select the **Device Add Channel** service and click the **Create Service** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/4695d78-04-04_16.11..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushDeviceAddChannel*** service has been added. Also, the **TypeScript > PushNotifications** folder contains the ***PushDeviceAddChannel\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/40f9bb9-2022-04-14_14-20-51.png" />

3. Go back to the **Screen 1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and add the **[Button](https://docs.appery.io/docs/button)** and **[Input](https://docs.appery.io/docs/input)** components to the editor.
4. Select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to ***Add Channel***.
5. Now, select the **[Input](https://docs.appery.io/docs/input)** component  and change its **Label Text** field to ***Channel name***:

<Image align="center" className="border" border={true} src="https://files.readme.io/8d8adf1-small-2023-05-09_21-48-47.png" />

5. Next, open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushDeviceAddChannel*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/f59cc04-2022-04-14_14-24-53.png" />

6. In the open mapping editor window, click the service ***Before send > Mapping*** button, create the following mapping and click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/0068d58-2022-04-14_14-26-40.png" />

7. To invoke the ***[Present toast](https://docs.appery.io/docs/5-event-handling#present-toast)*** action, click the **Add** button of the ***Before send*** service and then fill the **Message** field with ***Channel is added***.\
   Also, enable the **Cancel button** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/356b74a-2022-04-14_14-31-25.png" />

8. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel, and for the ***Click*** event of the **Add Channel** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then set the ***PushDeviceAddChannel*** value from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/b387c6e-small-2023-05-09_21-49-58.png" />

9. Click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview.
10. Fill the **Channel name** field with the channel value and click the **Add Channel** button: the message **Channel is added** should be displayed:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/30076f0-4.gif" />

11. Now, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** and go to the linked database and open its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection: the value from the **channels** column should correspond to the value **Channel name** field on preview:

<Image align="center" className="border" border={true} src="https://files.readme.io/710ce5c-2022-04-14_14-37-42.png" />

123. Now, [export](https://docs.appery.io/docs/appexport-overview) the app as an Android binary by clicking **EXPORT > Binary** (both **iOS** and **Android** options are available) in the top menu to [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) it on the device:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/814d8a1-Export.png" />

13. Open the app on the device and fill in the **Channel name** field with some value, for example, ***channel1*** and click the **Add Channel** button: the message ***Channel is added*** should be displayed:

<Image title="Screenshot_20220414-151614_PN Services.jpg" alt={1080} align="center" width="50% " border={true} src="https://files.readme.io/67c3abd-Screenshot_20220414-151614_PN_Services.jpg">
  Channel added to an Android device
</Image>

14. To make sure the database records are also updated, go back to the predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection and refresh it: the value from the **Channel name** column should correspond to the **Channel name** value of your test Android and/or iOS mobile device(s) on preview:

<Image align="center" className="border" border={true} src="https://files.readme.io/b5a02b4-2022-04-14_16-17-11.png" />

# Adding *Device Info* Service

1. Click the **CREATE NEW** button and select **Push service** under the **Backend Services** section.
2. In the the **Create new service** window, select the **Device Info** service and click the **Create Service** button:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/e2b9fc4-04-14_14.49..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushDeviceInfo*** service has been added. Also, the **TypeScript > PushNotifications** folder contains the ***PushDeviceInfo\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/6f30747-2022-04-14_14-54-09.png" />

3. Go to the **Screen 1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and add one **[Button](https://docs.appery.io/docs/button)** and five **[Input](https://docs.appery.io/docs/input)** components to the editor.
4. First, select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to ***Device Info***.
5. Now, one by one, select the **[Input](https://docs.appery.io/docs/input)** components  and change their **Label Text** fields to ***token***, ***timeZone***, ***createdAt***, ***id***, ***channelsList***.

> 👍 Tip!
>
> It's a good practice to replace the generated components' names with some meaningful names, so you can easily identify the components you are working with. This can be very useful when there are many similar UI components.
>
> For example, in this page, we assigned the inputs the names they have for their **Label > Text** properties:

<Image align="center" className="border" border={true} src="https://files.readme.io/d521b55-small-2023-05-09_21-52-26.png" />

6. Next, open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushDeviceInfo*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/86f3c19-2022-04-14_15-37-49.png" />

7. In the open mapping editor window, click the service ***Success > Mapping*** button, create the following mapping and click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/23a56bc-2022-04-15_13-21-43.png" />

> 🚧 Note!
>
> Please make sure to expand the needed components' folders to map to the corresponding `value` properties!

8. To invoke the ***[Present alert](https://docs.appery.io/docs/5-event-handling#present-alert)*** action, click the **Add** button of the ***Success*** service and then fill the **Message** field with ***Info is displayed***.\
   Also, enable the **Cancel Role** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/0a393c3-2022-04-14_15-58-06.png" />

9. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and for the ***Click*** event of the **Device Info** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then set the ***PushDeviceInfo*** value from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/ac15583-small-2023-05-09_21-53-28.png" />

10. Click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview.
11. Click the **Get Device ID** to get the ***deviceID*** value and then the **Device Info** buttons to fill the ***token***, ***type***, ***timeZone***, ***createdAt***, ***id***, ***channelsList*** fields. Also, the message **Info is displayed** should appear:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/dafbe89-5.gif" />

12. Now, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** and go to the linked database and open its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection.\
    The value from the ***deviceID***, ***token***, ***timeZone***, ***createdAt***, ***id***, and ***channelsList*** datatable columns should correspond to the values of the ***deviceID***, ***token***, ***timeZone***, ***createdAt***, ***id***, ***channelsList*** fields on the app preview:

<Image align="center" className="border" border={true} src="https://files.readme.io/20c9438-2022-04-15_13-27-54.png" />

13. Now, [export](https://docs.appery.io/docs/appexport-overview) the app as an Android binary by clicking **EXPORT > Binary** (both **iOS** and **Android** options are available) in the top menu to [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) it on the device:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/bb0a31e-Export.png" />

14. Open the app on the device and click the **Device Info** button to see that the **deviceID**, **token**, **type**, **timeZone**, **createdAt**, **id**, **channelsList** fields are now filled with some data.\
    Also, the message **Info is displayed** should appear:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/a1b5599-Screenshot_20220415-134703_PN_Services.jpg" />

15. Now, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** and go to the linked database and open its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection: the values from the database columns should correspond to the value fields on preview:

<Image align="center" className="border" border={true} src="https://files.readme.io/388470d-2022-04-15_13-48-07.png" />

# Adding *Device Update* Service

1. In the the **Create new service** window, select the **Device Update** service and click the **Create Service** button:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/76cab5f-04-14_16.50..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushDeviceUpdate*** service has been added. Also, the **TypeScript > PushNotifications** folder contains the ***PushDeviceUpdate\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/07186cf-2022-04-14_16-52-10.png" />

2. Select the ***PushDeviceUpdate*** service and open its **Request** tab to add a new nested parameter, ***channels*** of ***String*** type:

<Image align="center" className="border" border={true} src="https://files.readme.io/d2657b5-2022-04-15_15-14-31.png" />

3. Now, go to the **Screen 1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and add the **[Button](https://docs.appery.io/docs/button)** and **[Input](https://docs.appery.io/docs/input)** components to the editor.
4. First, select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to ***Update Channel***.
5. Now, select the **[Input](https://docs.appery.io/docs/input)** component  and change its **Label Text** field to ***Updated channel*** (you might also like to rename its **Component Name**):

<Image align="center" className="border" border={true} src="https://files.readme.io/c37d905-small-2023-05-09_21-55-40.png" />

6. Open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushDeviceUpdate*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/cc9d4dc-2022-04-15_15-03-05.png" />

7. In the open mapping editor window, click the service ***Before send > Mapping*** button, create the following mapping and click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/b29997b-2022-04-15_15-13-40.png" />

8. To invoke the ***[Present toast](https://docs.appery.io/docs/5-event-handling#present-toast)*** action, click the **Add** button of the ***Before send*** service, fill the **Message** field with ***Channel update is done***. Also, enable the **Cancel button** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/18989e0-2022-04-15_15-20-40.png" />

9. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and for the ***Click*** event of the **Update Channel** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then set the ***PushDeviceUpdate*** value from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/417eb0b-small-2023-05-09_21-56-42.png" />

10. Click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview and note the channel name in the **channelsList** field.
11. Now, fill the **Updated channel** field with a new channel value and click the **Update Channel** button: the message **Channel update is done** should be displayed.\
    Now, click the **Device Info** button to see the updated channel data:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/acd7d93-6.gif" />

13. Now, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** and go to the linked database and open its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection: the value from the **channels** column should correspond to the value of the **Updated Channel** field on preview:

<Image align="center" className="border" border={true} src="https://files.readme.io/39bc49d-2022-04-15_15-16-51.png" />

14. Now, [export](https://docs.appery.io/docs/appexport-overview) the app as an Android binary by clicking **EXPORT > Binary** (both **iOS** and **Android** options are available) in the top menu to [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) it on the device:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/4b7a7fe-Export.png" />

16. Open the app on the device and click the **Device Info** button to see that the **deviceID**, **token**, **timeZone**, **createdAt**, **\_id**, **channelsList** fields are now filled with some data.\
    Also, the message **Info is displayed** should appear:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/b2cb2f2-Screenshot_20220415-154612_PN_Services.jpg" />

17. Now, fill in the **Updated Channel** field with some value (for example ***droid-channel***) and click the **Update Channel** button: the message ***Channel update is done*** should be displayed:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/68c3195-Screenshot_20220415-154718_PN_Services.jpg" />

18. To make sure the database records are also updated, go back to the predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection and refresh it: the value from the **channels** column should correspond to the value of the **Updated Channel** field of your test Android and/or iOS mobile device(s) on preview:

<Image align="center" className="border" border={true} src="https://files.readme.io/48de043-2022-04-15_15-48-18.png" />

19. If you now click the **Device Info** button again, the message **Info is displayed** and the **channelsList** field with the updated channel value (***droid-channel***) will be displayed:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/8c89558-Screenshot_20220415-155238_PN_Services.jpg" />

# Adding *Device Remove Channel* Service

1. In the **Create new service** window, select the **Device Remove Channel** service and click the **Create Service** button:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/609e049-04-15_15.57..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushDeviceRemoveChannel*** service has been added. Also, the **TypeScript > PushNotifications** folder contains the ***PushDeviceRemoveChannel\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/9c3e6e4-2022-04-15_15-59-37.png" />

3. Go to the **Screen 1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and add the **[Button](https://docs.appery.io/docs/button)** and **[Input](https://docs.appery.io/docs/input)** components to the editor.
4. Select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to ***Remove Channel***.
5. Now, select the **[Input](https://docs.appery.io/docs/input)** component  and change its **Label Text** field to ***Removed channel*** (you might also like to rename its **Component Name**):

<Image align="center" className="border" border={true} src="https://files.readme.io/dfd7082-small-2023-05-09_21-58-40.png" />

6. Next, open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushDeviceRemoveChannel*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/2213f46-2022-04-15_16-08-49.png" />

7. In the open mapping editor window, click the service ***Before send > Mapping*** button, create the following mapping and click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/d937817-2022-04-15_16-10-28.png" />

8. To invoke the ***[Present alert](https://docs.appery.io/docs/5-event-handling#present-alert)*** action, click the **Add** button of the ***Before send*** service and then fill the **Message** field with ***Channel is removed***.\
   Also, enable the **Cancel Role** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/3d6908b-2022-04-15_16-11-57.png" />

9. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and for the ***Click*** event of the **Remove Channel** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then set the ***PushDeviceRemoveChannel*** value from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/f6d619d-2022-04-15_16-13-37.png" />

10. Click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview and note the channel name in the **channelsList** field.
11. Now, fill the **Removed channel** field with the existing channel value and click the **Remove Channel** button: the message **Channel is removed** should be displayed.\
    Now, click the **Device Info** button to see the updated empty channel data:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/dcbd51b-7.gif" />

12. Now, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/apperyio-visual-builder#toolbar)** and go to the linked database and open its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection: the value ***channel2*** is removed from the **channels** column:

<Image align="center" className="border" border={true} src="https://files.readme.io/cae320e-2022-04-15_16-19-59.png" />

Here is how this functionality works on an iOS device: when you remove one of the two channels (namely, ***channel4***) that were added before:

<Image align="center" className="border" border={true} src="https://files.readme.io/633014d-IMG_6909.PNG" />

and then go to the linked database and open its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection you will see that the value ***channel4*** is removed from the **channels** column for the iOS device:

<Image align="center" className="border" border={true} src="https://files.readme.io/cad655a-2022-04-15_17-58-58.png" />

# Adding *Send Push Notification* Service

1. In the **Create new service** window, select the **Send Push Notification** service and click the **Create Service** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/bd4cb25-04-15_16.22..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushSendNotification*** service has been added. Also, the **TypeScript > PushNotifications** folder contains the ***PushSendNotification\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/7f415a8-2022-04-15_16-23-42.png" />

2. First, open the **Settings** tab of your application **Push Notification** and copy its **apiKey** value:

<Image align="center" className="border" border={true} src="https://files.readme.io/15789f4-04-15_16.25..png" />

3. Now, open the**PushSendNotification** Service > **Request** tab and paste the copied **apiKey**. Save:

<Image align="center" className="border" border={true} src="https://files.readme.io/c6710c3-2022-04-15_16-27-44.png" />

4. Let's create a new blank page by clicking **CREATE NEW > Page**:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/0db6634-2022-04-15_17-11-01.png" />

5. First, open the **Screen 1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and drag a **[Button](https://docs.appery.io/docs/button)** to the **[Toolbar buttons](https://docs.appery.io/docs/toolbar#toolbar-buttons)** area and define its **Component Type** property as ***[Ionic Button](https://docs.appery.io/docs/button#ionic-button)*** and its **Text** property as ***Send PN***.\
   Also, set the **Route Name** to ***Screen2*** under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** **Routing** menu:

<Image align="center" className="border" border={true} src="https://files.readme.io/2534dc6-small-2023-05-09_22-00-50.png" />

6. Now, switch to the **Screen 2[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and click on the **[Toolbar title](https://docs.appery.io/docs/toolbar#toolbar-title)** in the app screen and change it to ***Send Push Notifications*** by changing the **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu.
7. Next, select the **[Page](https://docs.appery.io/docs/screens-and-tabs#pages-screens)** component from the breadcrumbs (you can also use the **[OUTLINE](https://docs.appery.io/docs/creating-app-ui-palette#outline-view)** view to locate the needed component) and set the page **[Footer](https://docs.appery.io/docs/2-creating-an-app-ui-pages-and-tabs#properties-1)** property to ***False*** as we will not use it in the app (you will also be asked to confirm changing the property).
8. Now, add five **[Input](https://docs.appery.io/docs/input)**, two **[Checkbox](https://docs.appery.io/docs/checkbox)**, and one **[Button](https://docs.appery.io/docs/button)** components to the editor.
9. One by one, select the **[Input](https://docs.appery.io/docs/ionic-5-ui-components-properties#input)** components  and change their **Label Text** fields to ***Title***, ***Message***, ***Device ID***, ***Channels\_in***, and ***Channels\_Nin***.
10. Also, set the **Label > Text** properties of both check boxes to ***Android*** and ***iOS*** correspondingly.
11. Now, select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to ***Send Notification***:

<Image align="center" className="border" border={true} src="https://files.readme.io/938f9c6-small-2023-05-09_22-02-12.png" />

> 👍 Tip!
>
> It's a good practice to replace the generated components' names with some meaningful names, so you can easily identify the components you are working with. This can be very useful when there are many similar UI components.

12. Next, open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushSendNotification*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/4ca29cc-2022-04-15_16-42-51.png" />

13. In the open mapping editor window, click the service ***Before send > Mapping*** button, create the following mapping and click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/dc2c265-2022-04-15_16-49-33.png" />

14. To invoke the ***[Present alert](https://docs.appery.io/docs/5-event-handling#present-alert)*** action, click the **Add** button of the ***Before send*** service and then fill the **Message** field with ***Notification is sent***.\
    Also, enable the **Cancel Role** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/aebbe82-2022-04-15_16-51-13.png" />

15. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel, and for the ***Click*** event of the **Send Notification** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then select ***PushSendNotification*** from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/d8ab768-small-2023-05-09_22-03-17.png" />

16. Now, [export](https://docs.appery.io/docs/appexport-overview) the app as an Android binary by clicking **EXPORT > Binary** (both **iOS** and **Android** options are available) in the top menu to [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) it on the device(s):

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/6627339-Export.png" />

17. Click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview and click the header **SEND PN** button to open the **Send Push Notifications** page.\
    When on the page, fill the **Title**, **Message** and paste the **Device ID**, and **Channels\_in** values from the corresponding fields of your Android device from the **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection of the linked database. Then, enable the **Android** check box and click the **Send Notification** button:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/3d32d7d-7.gif" />

18. The push message with the entered title and message values should be delivered to your Android device instantly:

<Image title="Screenshot_20220415-182210_Nova7.jpg" alt={1080} align="center" width="50% " border={true} src="https://files.readme.io/4f244e8-Screenshot_20220415-182210_Nova7.jpg">
  Push notification displayed on the Android device screen
</Image>

19. You can also check that the notification has been sent to the target Android device if you go to the **[Scheduled and history](https://docs.appery.io/docs/pushnotifications-sending#scheduled-and-history)** view (click the **[Push](https://docs.appery.io/docs/pushnotifications-configuration#enabling-in-backend-services)** link in the **App Builder** **[Toolbar](https://docs.appery.io/docs/toolbar)** to open the **[Push Notifications](https://docs.appery.io/docs/pushnotifications-sending#push-notifications-settings)** settings page for this app) and refresh it: the message sent to your Android device is now on the list:

<Image align="center" className="border" border={true} src="https://files.readme.io/5d1cd3d-2022-04-16_13-27-10.png" />

20. Now, fill the **Title**, **Message** and paste the **Device ID**, and **Channels\_in** values from the corresponding fields of your iOS device from the **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection of the linked database but enable the **iOS** check box and click the **Send Notification** button: the push message with title and message values should be delivered to your iOS device:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/c468140-8.gif" />

21. To review the notifications history is updated with the iOS records, go to the **[Scheduled and history](https://docs.appery.io/docs/pushnotifications-sending#scheduled-and-history)** view and refresh it: the message sent to your iOS device is now on the list:

<Image align="center" className="border" border={true} src="https://files.readme.io/55b2d5f-2022-04-15_18-28-21.png" />

> 🚧 Note!
>
> Make sure you allowed the app sending notifications to your device:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/408e89e-IMG_6906.PNG" />

> 👍 Note!
>
> If you want to send push messages to an Android device only (and not to an iOS device that has the same channel, for example, ***channel5***), open the **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection of the linked database and review the devices channels list; then open the app preview and and fill the **channels\_in** field with ***channel5*** (common for both device types) and the **channels\_Nin** field with the ***channel3*** value (absent from the iOS channels list). The push message will be sent to an Android device only:

<Image align="center" className="border" border={true} src="https://files.readme.io/1b3191c-2022-04-16_13-06-17.png" />

> 👍 Note!
>
> If you want to send push messages only to a particular device which has the same channel as other devices, fill the **channels\_in** field with the value that is common for both devices types, for example, ***channel5***, but indicate the needed device's **deviceID** field. The push message will be sent to a device with the indicated **deviceID** value only:

<Image align="center" className="border" border={true} src="https://files.readme.io/e6952c9-2022-04-16_13-19-54.png" />

# Adding *Device Unregister* Service

1. In the the **Create new service** window, select the **Device Unregister** service and click the **Create Service** button:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/02cb908-04-16_13.29..png" />

> 📘
>
> If you now go to the [**Project** tab](https://docs.appery.io/docs/apperyio-visual-builder#project-tab) and unfold the **Services > Push Notifications** folder, you will see that the ***PushDeviceUnregister*** service has been added. Also, the **TypeScript > PushNotifications** folder contains the ***PushDeviceUnregister\_Impl*** file:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/579ad01-2022-04-16_13-30-44.png" />

2. Go to the **Screen 1[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and add the **[Input](https://docs.appery.io/docs/input)** and the **[Button](https://docs.appery.io/docs/button)** components to the editor placing them under the **Register Device** button.
3. First, select the **[Input](https://docs.appery.io/docs/input)** component and change its **Label Text** field to ***Unregister DeviceID***.
4. Now, select the button and change its **Text** property under the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** panel menu to **\*Unregister Device**.

<Image align="center" className="border" border={true} src="https://files.readme.io/e789e03-small-2023-05-09_22-05-44.png" />

> 👍 Tip!
>
> It's a good practice to replace the generated components' names with some meaningful names, so you can easily identify the components you are working with. This can be very useful when there are many similar UI components.

5. Next, open the page **[DATA](https://docs.appery.io/docs/apperyio-visual-builder#data-panel)** panel, select the ***PushDeviceUnregister*** service from the datasource drop-down, and click the **Add** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/0bf7684-2022-04-16_13-39-35.png" />

6. In the open mapping editor window, click the service ***Success > Mapping*** button, create the following mapping and click **Save & Replace**:

<Image align="center" className="border" border={true} src="https://files.readme.io/6562f96-2022-04-16_13-41-26.png" />

7. To invoke the ***[Present alert](https://docs.appery.io/docs/5-event-handling#present-alert)*** action, click the **Add** button of the ***Success*** service and then fill the **Message** field with ***Unregistration success***. Also, enable the **Cancel Role** check box and then click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/8f594fb-2022-04-16_13-43-35.png" />

8. Now, go to the page **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel and for the ***Click*** event of the **UNREGISTER** button, select the ***[Invoke service](https://docs.appery.io/docs/5-event-handling#invoke-service)*** action, and then set the ***PushDeviceUnregister*** value from the drop-down of the **Datasource** field. Click the **Save** button:

<Image align="center" className="border" border={true} src="https://files.readme.io/74fb30c-small-2023-05-09_22-07-00.png" />

9. Click the **SAVE** and then **TEST** buttons in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** to open the app in preview.\
   First, click the **Get Device ID** button. The device id should be displayed: ***test\_device***.\
   The **Unregister Device ID** field is also filled with the ***test\_device*** value. Now, click the **Unregister Device** button: the message **Unregistration success** should be displayed.\
   Also, if you now click the **Device Info** button, no device data will be displayed:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/9068179-9.gif" />

10. To make sure the device has been unregistered, click the [Appery.io](https://appery.io) **[Database](https://appery.io/database/)** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)** and open the linked database, then go to its predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection and click **Refresh**: the device with the value ***test\_device*** is removed from the devices list:

<Image align="center" className="border" border={true} src="https://files.readme.io/4aae701-2022-04-16_13-55-24.png" />

12. Now, [export](https://docs.appery.io/docs/appexport-overview) the app as an iOS binary by clicking **EXPORT > Binary** (both **iOS** and **Android** options are available) in the top menu to [install](https://docs.appery.io/docs/testingandebug-testing-your-app#installing-app-on-a-device) it on the device:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/acb926c-Export.png" />

14. Open the app on the device and click the **Register Device** button (if the device has been registered before, you can skip this step), and then click the **Get Device ID** button to preview the device ID:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/35bf0dd-File_000_1.png" />

Check that the displayed ID corresponds with the **device ID** value from the **deviceID** column of the linked database:

<Image align="center" className="border" border={true} src="https://files.readme.io/4536ab4-2022-04-16_14-35-50.png" />

Now, click the **Unregister Device** button to see that the **Unregister DeviceID** field is now filled with your device's data. Also, the message **Unregistration success** should be displayed:

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/c524306-File_000.png" />

15. To make sure the database records are also updated, go back to the predefined **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection and refresh it: the table should be updated and the your test iOS device (and/or Android) mobile device(s) with the indicated ID will be missing from the list:

<Image align="center" className="border" border={true} src="https://files.readme.io/68c7c57-2022-04-16_14-39-42.png" />

> 👍 Important Note!
>
> Please note that you will need to generate the [iOS certificate](https://docs.appery.io/docs/appexport-ios#generating-ios-certificates) with the [In-App Purchase capability](https://developer.apple.com/in-app-purchase/) to build an `.ipa` file.\
> You can check [this](https://docs.appery.io/docs/appexport-ios) document in case you need help with exporting your application for iOS.\
> [Here](https://docs.appery.io/docs/appexport-android#android-certificate-file), you will find information on generating certificates for Android.\
> Note as well that starting from *August 2021*, new apps are required to publish with the [Android App Bundle](https://developer.android.com/guide/app-bundle) (`.aab`) on Google Play.\
> Please read more [here](https://developer.android.com/guide/app-bundle).\
> You can also check this Appery.io YouTube video that shows how to create Android and iOS certificates:

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/aMS4T0snEeA" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

> 👍 Selecting Build Type
>
> Before you can proceed with exporting your app, go to **Project view > Project > App settings > Android binary/iOS binary** to select the **Release** build type (**Debug** is the default type for both and can be used for testing purposes only).
>
> If the **[Release and Publish](https://docs.appery.io/docs/appexport-ios#release-and-publish-building)** type is selected under the **iOS binary** tab, building the release app version will be performed together with publishing it to the *[App Store](https://www.apple.com/app-store/)*.

<Image align="center" className="border" border={true} src="https://files.readme.io/527e45d-small-2023-05-09_22-08-53.png" />

> 🚧 Push Notifications Testing
>
> To test sending and receiving [Push Notification](https://docs.appery.io/docs/overview-pushnotifications) messages the app has to be installed on the device.\
> Note that Push Notification messages cannot delivered when running the app with the [**Appery.io Tester**](https://docs.appery.io/docs/apperyio-tester-app) app but you can use the **[Live Debug](https://docs.appery.io/docs/using-live-debug)** feature to test this functionality.