Skip to content

This flutter poc repository demonstrates how to store received push notification using Notification Service extension and retrieve them back in the app lifecycle.

License

Notifications You must be signed in to change notification settings

useinsider/push-storage-flutter-poc

Repository files navigation

Insider Flutter Push Storage POC

Insider flutter_insider Package InsiderAcademy

Description

This flutter poc repository demonstrates how to store received push notification using Notification Service extension and retrieve them back in the app lifecycle.

Demonstrations made in this poc project are merely an example but not an alternative to the recommended way of retrieving saved push notification using Insider's Message Center product.

Preview

Installation

Install all npm packages by running the dart pub get command in the home directory.

Replace partner name and app group value in main.dart with your info.

Note: Can easily find the warnings added as comments by searching the FIXME-INSIDER key in the project and you can quickly make the necessary arrangements for the project.

Android

  1. Add google-services.json and agconnect-services.json to android/app folder.
  2. Add your keystore file to android/app folder and replace signingConfigs attributes in android/app/build.gradle file with your info.
  3. Replace manifestPlaceholders -> partner value with your partner name in android/app/build.gradle file. (This step is important to add test device with QR or Email in the panel.)
  4. And run project with flutter run command.

iOS

  1. Go to the iOS folder with terminal and run the pod install command.
  2. Open XCode and check the app group and bundle identifier for all targets.
  3. Replace insider URL type in main target Info -> URL Types with your partner name. (This step is important to add test device with QR or Email in the panel.)
  4. Change APP_GROUP variables value in InsiderNotificationService/NotificationService.m and InsiderNotificationContent/NotificationViewController.m files.
  5. And run project with XCode.

About

This flutter poc repository demonstrates how to store received push notification using Notification Service extension and retrieve them back in the app lifecycle.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published