Search Unity

Local notifications on Windows Desktop

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

  1. cr4y

    cr4y

    Joined:
    Jul 12, 2012
    Posts:
    38
    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:
    38
    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:
    6,999
  4. delphinius81

    delphinius81

    Joined:
    Mar 6, 2012
    Posts:
    56
    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:
    45
    yep me too, somebody help
     
unityunity