Skip to content

Commit

Permalink
add android progress notification for http transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Sep 14, 2023
1 parent 246d39a commit bf08f8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ProjectTemplates/ShinyApp/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ static MauiAppBuilder RegisterInfrastructure(this MauiAppBuilder builder)
#endif
#if (httptransfers)
s.AddHttpTransfers<ShinyApp.Delegates.MyHttpTransferDelegate>();
//-:cnd:noEmit
#if ANDROID
// if you want http transfers to also show up as progress notifications, include this
s.AddShinyService<Shiny.Net.Http.PerTransferNotificationStrategy>();
#endif
//+:cnd:noEmit
#endif
#if notifications
s.AddNotifications();
Expand Down

0 comments on commit bf08f8d

Please sign in to comment.