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

Wire up Flutter methods to proxy #161

Merged
merged 47 commits into from
Aug 8, 2023
Merged

Wire up Flutter methods to proxy #161

merged 47 commits into from
Aug 8, 2023

Conversation

Apekka
Copy link
Contributor

@Apekka Apekka commented Mar 10, 2023

Add the Proxy and wire up the flutter methods to it

@Apekka Apekka requested a review from rlepinski as a code owner March 10, 2023 14:54
example/lib/main.dart Outdated Show resolved Hide resolved
@Apekka Apekka changed the title Actions, Analytics, Contact module, and some polish Wire up Flutter methods to proxy May 10, 2023
@rlepinski
Copy link
Collaborator

This looks good but I really need to do some testing on it to make sure its all good. Ill try to get to that by EOW.

lib/src/airship_push.dart Outdated Show resolved Hide resolved
lib/src/airship_push.dart Outdated Show resolved Hide resolved
lib/src/airship_push.dart Outdated Show resolved Hide resolved
lib/src/airship_push.dart Show resolved Hide resolved
lib/src/airship_push.dart Show resolved Hide resolved
ios/Classes/SwiftAirshipPlugin.swift Outdated Show resolved Hide resolved
@rlepinski
Copy link
Collaborator

We need to setup a listener in the autopilot that calls handleBackgroundMessage when we get a background push being recieved

}

/// Sets the notification options.
Future<void> setForegroundPresentationOptions(List<ForegroundPresentationOption> options) async {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting errors on this one

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They need to be converted to the expected string values and not just the enum. I would have an internal method convertOption that you switch on the type and return the string. You will need to do that for Features and NotificationOptions as well

lib/src/airship_utils.dart Outdated Show resolved Hide resolved
@rlepinski rlepinski merged commit f7e0791 into release-7.0.0 Aug 8, 2023
3 checks passed
@rlepinski rlepinski deleted the MOBILE-3532 branch August 8, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants