Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @Ganesh Gebhard
It looks like your MAUI app is getting a “not found” error on the registrations endpoint in your deployed API. Usually, this happens when the app isn’t targeting the right route or the API app hasn’t been set up or restarted with the correct settings.
Confirm your endpoint and HTTP method
- The default controller route is: PUT https://.azurewebsites.net/api/notifications/installations
- Your MAUI HttpClient call should look like: await httpClient.PutAsync("api/notifications/installations", content);
- Check that your BaseAddress ends with a slash and your relative path doesn’t start with one.
Test with a REST client (Postman, curl, HTTP REPL)
- Send a simple PUT request to the same URL (with minimal or no body)
- You should get a 400 (bad request) or a 401/403 if the apikey header is missing, but not a 404.
- If you still get a 404, the route isn’t exposed by the service.
Review your App Service settings and restart
- Go to the Azure portal, select your App Service, and check Configuration → Application settings
- Ensure these keys are set: • Authentication:ApiKey = your API key • NotificationHubsConnection = your Notification Hubs connection string • NotificationHubName = your hub name
- Save and manually restart the App Service for the changes to take effect.
Check your controller routing
- Open your Web API project and verify the attribute routing is correct: [Route("api/notifications/[controller]")]
- The controller should be named InstallationsController ([controller] becomes “installations”).
Look out for front-door or gateway rewrites
- If you’re using Application Gateway, API Management, or custom rewrite rules, make sure they aren’t removing /api/notifications/ from the route.
If you still get a 404 after these steps, please share:
- The full URI your MAUI code calls (BaseAddress and relative path)
- A snippet of your registration method in INotificationRegistrationService (the HttpClient lines)
- What response you get when you call the same URL from Postman or HTTP REPL
https://learn.microsoft.com/en-us/dotnet/maui/data-cloud/push-notifications?view=net-maui-10.0
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-8.0
Let me know if you have any further assisstences needed.