Skip to content

Commit

Permalink
Analyzing talawa
Browse files Browse the repository at this point in the history
  • Loading branch information
andoriyaprashant committed Nov 11, 2023
1 parent 6b16192 commit 9f54f6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ import 'package:talawa/views/base_view.dart';
///
/// **returns**:
/// * `Future<void>`: promise that will be fulfilled message background activities are successful.
Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
// If you're going to use other Firebase services in the background, such as Firestore,
// make sure you call `initializeApp` before using other Firebase services.
final Directory dir = await path.getApplicationDocumentsDirectory();
Hive.init(dir.path);
await setUpFirebaseKeys();
await setUpFirebase();
}
// Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
// // If you're going to use other Firebase services in the background, such as Firestore,
// // make sure you call `initializeApp` before using other Firebase services.
// final Directory dir = await path.getApplicationDocumentsDirectory();
// Hive.init(dir.path);
// await setUpFirebaseKeys();
// await setUpFirebase();
// }

/// Initializes the firebase in the app according to the userplatform (android/iOS).
///
Expand Down
2 changes: 1 addition & 1 deletion lib/view_model/pre_auth_view_models/login_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class LoginViewModel extends BaseModel {
queries.saveFcmToken(token),
);

//await setUpFirebaseMessaging();
///await setUpFirebaseMessaging();
final androidFirebaseOptionsBox =
await Hive.openBox('androidFirebaseOptions');
Expand Down

0 comments on commit 9f54f6b

Please sign in to comment.