-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
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. |
We need to setup a listener in the autopilot that calls |
lib/src/airship_push.dart
Outdated
} | ||
|
||
/// Sets the notification options. | ||
Future<void> setForegroundPresentationOptions(List<ForegroundPresentationOption> options) async { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
android/src/main/kotlin/com/airship/flutter/events/DeeplinkEvent.kt
Outdated
Show resolved
Hide resolved
android/src/main/kotlin/com/airship/flutter/FlutterAutopilot.kt
Outdated
Show resolved
Hide resolved
… into MOBILE-3532
Add the Proxy and wire up the flutter methods to it