Closed PhongTaKiai closed 6 months ago
@PhongTaKiai Where is the Cloud Functions' code?
@PhongTaKiai, Could you show us a video of the device receiving FCM?
@mafreud cc @PhongTaKiai お疲れ様です。 アプリの購入後とアプリ掲載の通知がありますので、 こちらはアプリ掲載画面の実装が完了した後で、引き続き実装したいと思います。 何卒よろしくお願い申し上げます。
@PhongTaKiai, Could you show us a video of the device receiving FCM?
https://github.com/ailab-dev/app_buy_sell/assets/117698659/0a639338-0f36-4fc4-9d13-3b3d44720196
@mafreud I uploaded video
@PhongTaKiai Thanks. How about android?
https://github.com/ailab-dev/app_buy_sell/assets/117698659/2e140c55-f782-4f67-a976-9c18c493ec43
@mafreud I updated android video
@PhongTaKiai Please use a physical device.
https://github.com/ailab-dev/app_buy_sell/assets/117698659/ab170428-5c1b-4daf-a8f6-0e88fa6551f8 @mafreud updated. Thank
Thank you
https://github.com/ailab-dev/app_buy_sell/assets/117698659/39ff8768-9f82-4007-8e05-5659d77886b9
This pull request introduces changes to support push notifications and to add a notification feature in the application. The changes include modifications to iOS configuration files, addition of Firebase Messaging package, creation of new classes for handling notifications, and UI changes to display notifications.
iOS Configuration Changes:
ios/Runner/Info.plist
: AddedUIBackgroundModes
withremote-notification
to allow the app to receive remote notifications from Firebase Cloud Messaging.ios/Runner/Runner.entitlements
: Addedaps-environment
with valuedevelopment
to enable Apple Push Notification service (APNs) in the development environment.Firebase Messaging Integration:
lib/main.dart
: Importedfirebase_messaging
package and requested permission for notifications. [1] [2]New Classes for Notifications:
lib/src/features/home/application/app_service.dart
: CreatedAppService
class for handling app-related operations.lib/src/features/notification/domain/notification_model.dart
: CreatedNotificationModel
class to represent a notification.lib/src/features/notification/domain/notification_model.freezed.dart
: Auto-generated file forNotificationModel
class.lib/src/features/notification/domain/notification_model.g.dart
: Auto-generated file for JSON serialization ofNotificationModel
.lib/src/features/notification/provider/notification_provider.dart
: CreatedNotificationList
class to fetch notifications from Firestore.UI Changes:
lib/src/features/home/presentation/home_page.dart
: Added an action to navigate to the notification page.lib/src/features/notification/presentation/notification_page.dart
: CreatedNotificationPage
class to display the list of notifications.