-
Notifications
You must be signed in to change notification settings - Fork 1
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
remove background push and fix push response handling #15
base: master
Are you sure you want to change the base?
Conversation
@@ -33,17 +33,25 @@ public override async void DidReceiveNotificationRequest(UNNotificationRequest r | |||
//Save the notification and create a mutable copy | |||
BestAttemptContent = (UNMutableNotificationContent)request.Content.MutableCopy(); |
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.
Somehow the formatting is really fucked up here with tabs and spaces.
@@ -51,22 +51,10 @@ public static INotifoMobilePush UseFirebasePluginEventsProvider(this INotifoMobi | |||
/// <param name="notifo">The <see cref="INotifoMobilePush"/> instance.</param> | |||
/// <param name="data">The notification data dictionary.</param> | |||
/// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns> | |||
public static async Task DidReceiveMessageAsync(this INotifoMobilePush notifo, NSDictionary data) | |||
public static void DidReceiveMessageAsync(this INotifoMobilePush notifo, NSDictionary data) |
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.
Should not be called "Async", if it is not async.
{ | ||
options ??= new PullRefreshOptions(); | ||
var options = new PullRefreshOptions(); |
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.
This makes the full options useless.
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.
yeah that's right. Could be removed completely but what do you think in general of removing the pullRefresh?
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.
In general I tried not to have some non-configurable values, but it is weird, that these options are configured over the method. So we should just add a method to INotifoPush like
NotifoPush.Current.SetPullOptions(...);
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.
I have introduced this change in the base branch
640549a
to
cc77f79
Compare
No description provided.