Search Unity

Local notifications on Windows Desktop

Discussion in 'Windows' started by cr4y, Dec 22, 2015.

  1. cr4y

    cr4y

    Joined:
    Jul 12, 2012
    Posts:
    44
    Hi,

    Our players told us that it would be very useful for them if our game would send local notifications (like Skype does - if it is minimised and someone contacts with us, we have small pop-up in bottom corner of screen).

    I found many packages allowing for doing so on iOS, Android, even Windows Store - but we need it in plain Desktop Windows game - we intend to distribute it using Steam, now we just send exe installer to everyone.

    I am programmer and I am not afraid of C# reflection and using Windows dll files when necessary. But I do not have idea where to start digging. Asset store was not very helpful, google aren't either.

    If you could help in any way, I would highly appreciate it.
    Thanks,
    Kris
     
  2. cr4y

    cr4y

    Joined:
    Jul 12, 2012
    Posts:
    44
    Creating dll library with function:
    public static void ShowNotification(){
    var item = new NotifyIcon { Visible = true, Icon = System.Drawing.SystemIcons.Information };
    item.ShowBalloonTip(3000, "Balloon title", "Balloon text", ToolTipIcon.Info);
    }

    solves problem in Editor, but during compilation raises:
    ArgumentException: The Assembly System.Windows.Forms is referenced by NotificationsLibrary ('Assets/NotificationsLibrary.dll'). But the dll is not allowed to be included or could not be found.

    Do anyone knows how I can solve it without including dozens of dlls?
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
  4. delphinius81

    delphinius81

    Joined:
    Mar 6, 2012
    Posts:
    57
    Did this question ever get resolved? I'm interested in doing local, scheduled notifications on desktop as well.
     
  5. RASKALOF

    RASKALOF

    Joined:
    Jul 9, 2012
    Posts:
    56
    yep me too, somebody help
     
  6. dpt2

    dpt2

    Joined:
    Jun 15, 2021
    Posts:
    50
    Still seeking answer in 2021
     
    lasolim likes this.
  7. ASDF_alpha

    ASDF_alpha

    Joined:
    Aug 25, 2020
    Posts:
    29
  8. ASDF_alpha

    ASDF_alpha

    Joined:
    Aug 25, 2020
    Posts:
    29
  9. Nichathan

    Nichathan

    Joined:
    Mar 8, 2020
    Posts:
    23
  10. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,438