Merge branch 'add-fcm' into fix-ui

This commit is contained in:
Osama Asif 2023-07-26 19:12:40 +05:00
commit 462bc19287
5 changed files with 2 additions and 92 deletions

1
.gitignore vendored
View File

@ -40,6 +40,7 @@
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/app/google-services.json
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

View File

@ -1,48 +0,0 @@
{
"project_info": {
"project_number": "56477459736",
"firebase_url": "https://medito-app.firebaseio.com",
"project_id": "medito-app",
"storage_bucket": "medito-app.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:56477459736:android:a70bdb141a5bc249926a6d",
"android_client_info": {
"package_name": "meditofoundation.medito"
}
},
"oauth_client": [
{
"client_id": "56477459736-6afaf9fmot9fi2efjoci6ksrinkcba23.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC4-FUvL5c0xCS4IJw5haZlVaorgCmYJ0M"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "56477459736-6afaf9fmot9fi2efjoci6ksrinkcba23.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "56477459736-vbt5vnojvvnm526tbvoavjrceu3imi26.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "org.meditofoundation",
"app_store_id": "1500780518"
}
}
]
}
}
}
],
"configuration_version": "1"
}

View File

@ -1,39 +0,0 @@
{
"project_info": {
"project_number": "225683727641",
"project_id": "medito-9165c",
"storage_bucket": "medito-9165c.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:225683727641:android:adb88176d9501d5ca15188",
"android_client_info": {
"package_name": "meditofoundation.medito"
}
},
"oauth_client": [
{
"client_id": "225683727641-7de8rb1lncf66egi7rc9qpsald7oemkb.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDgc6gyOQb3p5zotBbawGsx7fydR9G2S8s"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "225683727641-7de8rb1lncf66egi7rc9qpsald7oemkb.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}

View File

@ -33,8 +33,6 @@ Future<void> requestPermission() async {
);
if (settings.authorizationStatus == AuthorizationStatus.authorized) {
print('User granted permission');
// For handling the received notifications
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
_showNotification(
@ -43,8 +41,6 @@ Future<void> requestPermission() async {
json.encode(message.data),
);
});
} else {
print('User declined or has not accepted permission');
}
}
@ -64,6 +60,7 @@ Future<void> initialiazeLocalNotification() async {
}
void onSelect(NotificationResponse? data) async {
// TODO
print(data);
}

View File

@ -58,7 +58,6 @@ dependencies:
firebase_messaging: ^14.6.4
firebase_core: ^2.14.0
flutter_local_notifications: ^15.0.0
dev_dependencies:
flutter_test: