Implement FCM [WIP]
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
plugins {
|
||||
id "com.android.application"
|
||||
// START: FlutterFire Configuration
|
||||
id 'com.google.gms.google-services'
|
||||
// END: FlutterFire Configuration
|
||||
id "kotlin-android"
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
}
|
||||
@@ -29,7 +32,7 @@ if (keystorePropertiesFile.exists()) {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace "com.example.simplecloudnotifier"
|
||||
namespace "com.blackforestbytes.simplecloudnotifier"
|
||||
compileSdkVersion flutter.compileSdkVersion
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
|
56
flutter/android/app/google-services.json
Normal file
56
flutter/android/app/google-services.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "232728961679",
|
||||
"firebase_url": "https://simplecloudnotifier-ea7ef.firebaseio.com",
|
||||
"project_id": "simplecloudnotifier-ea7ef",
|
||||
"storage_bucket": "simplecloudnotifier-ea7ef.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:232728961679:android:23c75317f79601c9",
|
||||
"android_client_info": {
|
||||
"package_name": "com.blackforestbytes.simplecloudnotifier"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "232728961679-o7gig6f684mp1l1ok7719v3jf3csejc1.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.blackforestbytes.simplecloudnotifier",
|
||||
"certificate_hash": "3bcafbd39256422f0cb51fd446a228c26543afb4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "232728961679-t1h2eo5keha2lrvhsvdr5kgbkbfkja0o.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyBasR6JLAjM5Ut0rPb0euE_9DdDoTkcvKQ"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "232728961679-f2951kg24ngsttkhd96qhcr8j3lc8nnk.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
},
|
||||
{
|
||||
"client_id": "232728961679-bsbtc6orskaqafc8gtsuqia53f6ree48.apps.googleusercontent.com",
|
||||
"client_type": 2,
|
||||
"ios_info": {
|
||||
"bundle_id": "com.blackforestbytes.SimpleCloudNotifier",
|
||||
"app_store_id": "6455594868"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
@@ -1,6 +1,12 @@
|
||||
package com.example.simplecloudnotifier
|
||||
package com.blackforestbytes.simplecloudnotifier
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
class MainActivity: FlutterActivity() {
|
||||
onCreate() {
|
||||
GoogleApiAvailability.makeGooglePlayServicesAvailable()
|
||||
}
|
||||
onResume() {
|
||||
GoogleApiAvailability.makeGooglePlayServicesAvailable()
|
||||
}
|
||||
}
|
||||
|
@@ -24,6 +24,9 @@ pluginManagement {
|
||||
plugins {
|
||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||
id "com.android.application" version "7.3.0" apply false
|
||||
// START: FlutterFire Configuration
|
||||
id "com.google.gms.google-services" version "4.3.15" apply false
|
||||
// END: FlutterFire Configuration
|
||||
}
|
||||
|
||||
include ":app"
|
||||
|
Reference in New Issue
Block a user