# Tích hợp kênh thông báo đẩy (Push notification)

Hệ thống Tanigo có thể hỗ trợ tạo các kịch bản gửi Push notification trên mobile app. Tuy nhiên, bạn cần sử dụng 1 nền tảng gửi push được hỗ trợ như One Signal, Firebase và APNs.

Tanigo có thể hoạt động như 1 nền tảng để thiết kế kịch bản gửi Push notification trên Mobile app. Kịch bản trên Tanigo bao gồm thời điểm gửi, nội dung gửi, các hành động kèm theo khi gửi Push notification (ví dụ gắn nhãn khách hàng).

Tuy nhiên, bạn cần sử dụng 1 nền tảng gửi Push notification trên amobile app riêng biệt mà chúng tôi hỗ trợ, gồm 3 nền tảng One Signal, Firebase và APNs.

## Tích hợp kênh push qua One Signal

Để tích hợp kênh push qua One Signal, bạn hãy làm theo các bước sau

Bước 1: Từ màn hình chính của Tanigo, chọn menu **Tích hợp** (bên tay trái) và chọn **Thêm tích hợp**

Bước 2 Trong phần Push notification, chọn mục One Signal, bạn sẽ thấy cửa sổ hiện ra như dưới đây

<figure><img src="https://2503157451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl2az5YyB75HkzLJAYhKs%2Fuploads%2FUUnVXszM7MZ11LqfXn4Z%2Fimage.png?alt=media&#x26;token=2cb7309e-7dda-41fe-98af-bb45e8b72e33" alt=""><figcaption></figcaption></figure>

Bước 3: Lấy thông tin App ID và API key từ tài khoản OneSignal theo hướng dẫn dưới đây, dán vào và bấm **Thêm**

1\. Đăng nhập vào Onesignal

&#x20;2\. Chọn app cần liên kết

<figure><img src="https://2503157451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl2az5YyB75HkzLJAYhKs%2Fuploads%2FZblh8JJwmWgwtncuuB5B%2Fimage.png?alt=media&#x26;token=58ae1f8e-5ad6-4ec3-8362-a43e1c1ec523" alt=""><figcaption></figcaption></figure>

3\. Vào setting

<figure><img src="https://2503157451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl2az5YyB75HkzLJAYhKs%2Fuploads%2Fjy8zLhwVjFkWv5D7YbAv%2Fimage.png?alt=media&#x26;token=609cc6e7-e9c9-4446-a8c4-825e1f3d99bd" alt=""><figcaption></figcaption></figure>

4\. Vào phần Key & ID

5\. Copy App ID và Rest API key rồi điền vào Tanigo và bấm Thêm là hoàn thành

## Tích hợp kênh Push qua Firebase

Để tích hợp kênh push qua Firebase, bạn hãy làm theo các bước sau

Bước 1: Từ màn hình chính của Tanigo, chọn menu Tích hợp (bên tay trái) và chọn Thêm tích hợp

Bước 2 Trong phần Push notification, chọn mục Firebase, bạn sẽ thấy cửa sổ hiện ra như dưới đây

<figure><img src="https://2503157451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl2az5YyB75HkzLJAYhKs%2Fuploads%2FCqPbOT0rRC5Vlez206PK%2Fimage.png?alt=media&#x26;token=69fb07a2-2390-40b8-af08-718749516444" alt=""><figcaption></figcaption></figure>

Bước 3. Tải lên file service account theo hướng dẫn lấy file dưới đây.

1\. Truy cập firebase và chọn app cần liên kết

<figure><img src="https://2503157451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl2az5YyB75HkzLJAYhKs%2Fuploads%2F0ErAenj3ttJ0XPb9uGQW%2Fimage.png?alt=media&#x26;token=3c3cc046-b591-4b83-a2cb-aecadaa02b5e" alt=""><figcaption></figcaption></figure>

2\. Vào **project setting** rồi chọn **service accounts**

<figure><img src="https://2503157451-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl2az5YyB75HkzLJAYhKs%2Fuploads%2FuxHAhkmemjdDjrWbRyvP%2Fimage.png?alt=media&#x26;token=9bd0f1fa-74e6-4763-a590-256016115b87" alt=""><figcaption></figcaption></figure>

3\.      Nhấn **Genereate new private key** sau đó nhận file

4\.      Tải file vừa nhận lên Tanigo rồi bấm Thêm là hoàn thành


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tailieu.tanigo.vn/tich-hop-kenh-gui-tin/tich-hop-kenh-thong-bao-day-push-notification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
