We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef13e07 commit ef9cb09Copy full SHA for ef9cb09
README.md
@@ -24,10 +24,11 @@ Install-Package CorePush
24
25
Both `ApnSender` and `FcmSender` have dependencies that need to be registered in order to enable DI.
26
27
-1. Register HttpClient in Startup.cs:
+1. Register HttpClient in Startup.cs. This will allow injection of HttpClient into the FCM and APN senders:
28
29
```
30
-services.AddHttpClient();
+services.AddHttpClient<FcmSender>();
31
+services.AddHttpClient<ApnSender>();
32
33
34
2. Register settings as a singleton:
0 commit comments