Push Notification với Firebase
Firebase là dịch vụ cơ sở dữ liệu hoạt động trên nền tảng đám mây. Kèm theo đó là hệ thống máy chủ cực kỳ mạnh mẽ của Google.
Last updated
Was this helpful?
Firebase là dịch vụ cơ sở dữ liệu hoạt động trên nền tảng đám mây. Kèm theo đó là hệ thống máy chủ cực kỳ mạnh mẽ của Google.
Last updated
Was this helpful?
Truy cập để tạo một project Firebase.
Bước 1. Trong Firebase Project chọn thêm một ứng dụng Android và làm theo trình tự. Sau đó tải file google-services.json
đặt tại thư mục android/app
Bước 2. Thêm classpath trong file <app-name>/android/build.gradle
Bước 3. Thêm vào bên trong thẻ Activity trong file AndroidManifest.xml
Bước 4. Thêm dependency trong file<app-name>/android/app/build.gradle
Bước 5. Thêm dòng apply plugin vào file <app-name>/android/app/build.gradle
Nếu bước này không được hoàn thành thì sẽ gặp lỗi:
Default FirebaseApp is not initialized in this process [package name]. Make sure to call FirebaseApp.initializeApp(Context) first.