Jump to content

Notification class question


chef

Recommended Posts

I notice if I send a notification through the API it will log in the notification list (great!) but is it possible to request a popup on the device running emby to show the notification?

 

Should this happen automatically or is it client specific what notifications to show?

 

Example Xbox emby Theater will show a popup when the server is restarting.

Link to comment
Share on other sites

Is it better to go through ISessionController or ISessionManager?

public static async void Notes()
        {
            foreach (var session in SessionManager.Sessions)
            {
                await session.SessionController.SendMessage( "Test", "HelloWorld", CancellationToken.None);
            }
        }

or just:

public static async void Notes()
        {
            
            
                await SessionController.SendMessage( "Test", "HelloWorld", CancellationToken.None);
            
        }

Where SessionControler is ISessionControler Class

Link to comment
Share on other sites

Damn I had it working for about half a day and now I can't get message pop ups.

 

I have even tried using GeneralCommands with the type of SendMessage

 

Is there a plugin on git which shows an example?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...