Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setOnBackgroundMessage() is now a Future<void> that will await for the function to complete. #499

Merged
merged 7 commits into from
Dec 13, 2023

Commits on Nov 30, 2023

  1. Update background_android_isolate_platform.dart

    I made the call to the onPushBackgroundMessage await for the handler to complete.
    asoap authored Nov 30, 2023
    Configuration menu
    Copy the full SHA
    d477ce9 View commit details
    Browse the repository at this point in the history
  2. Update push_notification_events_internal.dart

    I changed handleBackgroundMessage() to become a Future<void> and async/await.
    asoap authored Nov 30, 2023
    Configuration menu
    Copy the full SHA
    4822735 View commit details
    Browse the repository at this point in the history
  3. Update push_notification_events.dart

    I made the BackgroundMessageHandler a Future<void> instead of void so that we can async/await for it to be completed.
    asoap authored Nov 30, 2023
    Configuration menu
    Copy the full SHA
    2b32839 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Update push_notification_events_internal.dart

    handleBackgroundMessage now handles when _onBackgroundMessage is defined as void or Future<void>  It checks to see if it's a Future and then awaits it if it is.
    asoap authored Dec 5, 2023
    Configuration menu
    Copy the full SHA
    5fb7e6e View commit details
    Browse the repository at this point in the history
  2. Update push_notification_events.dart

    Changed the cast on BackgroundMessageHandler to dynamic, this allows it to be defined as both void and Future<void>
    asoap authored Dec 5, 2023
    Configuration menu
    Copy the full SHA
    f8f92dd View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Configuration menu
    Copy the full SHA
    8f67802 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. fix: formatting

    ttypic committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    997c3f2 View commit details
    Browse the repository at this point in the history