Base solution for your next web application
Open Closed

MAUI - Dependency service Error #11782


User avatar
0
ricardo created

Hi,

I'm implementing the shiny package for background tasks and notifications in the maui app (XAML), but I am getting error when I try to inject the services:

Code:

Register Service:

Inject

Am I forgetting something to register the service?

my module:


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ricardo

    Is this a custom package ? If so, could you share its NuGet URL ?

    Thanks,

  • User Avatar
    0
    ricardo created

    Hi @ismcagdas

    yes :

    https://github.com/shinyorg/shiny

    https://shinylib.net/

    Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ricardo

    I have followed https://shinylib.net/client/hosting/maui/ and then https://shinylib.net/client/push/ but I couldn't reproduce this problem.

    Is it possible to share step by step instructions to reproduce this problem. If you are following a document, you can share it as well.

  • User Avatar
    0
    ricardo created

    Hi @ismcagdas

    I didn't really pay attention to the details below:

    Host.Current.Services.GetService<IPushManager>();

    tanks.