[plugin] Notification

Post your work in progress addons and get feedback

Post » Wed Dec 24, 2014 11:45 pm

Notification

Image

Support :
- Chrome 32+ *1
- Firefox 22+ *1
- nw 0.11+

*1 It may work in earlier versions. I've tried supporting the older API's, although I haven't had a chance to test.

Feel free to test others yourself and post the results.

Here's the spec or a demo if anyone's interested.

Download

Happy Holidays Scirra.
Last edited by Noncentz705 on Fri Feb 13, 2015 8:00 am, edited 1 time in total.
B
11
S
2
G
1
Posts: 202
Reputation: 1,580

Post » Thu Jan 01, 2015 12:40 pm

Thanks :)
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

Post » Sun Jan 18, 2015 5:29 am

Oh. I was pretty sad there wasn't something like this the other day- and then ... here it is. I'll have to try this out in a little. =] Thx.
B
73
S
10
G
6
Posts: 105
Reputation: 7,577

Post » Tue Feb 24, 2015 2:48 am

Hey @Noncentz705 - great plugin, im using it for the tutorial notifications in Cosmochoria and it really makes it look nice! Was curious - is it possible to modify the plugin to also allow the use of in-game sprites or even reference the "Files" that are uploaded to a project to avoid having to connect to the web to DL the image? Im worried about someone not having Net access when they play, then the notification wouldnt get a cool image which helps a lot in getting the point across.

THanks again! Youre in the credits because of this haha.
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Tue Feb 24, 2015 2:32 pm

I've updated the example, you could use the imageURL expression from the canvas plugin or reference project assets directly for use as icons.

I'd suggest using images of 128x128 in dimension to accommodate for larger notifications. (i.e nwjs - win 8/8.1).
To enable notifications on that platform, you may have noticed a shortcut to nw is added to the start menu ('projectName.lnk'); If the project name is empty it'll be called node-webkit.lnk ...
To remove it, right click the tile, open file location and delete the lnk file.

On older windows platforms, a system tray notification is displayed instead.
In this case notifications aren't displayed concurrently and the newest takes priority.

For "Firefox OS <1.1 you'll want to use an externally hosted version"... of the icon.
"[T]he notification is displayed immediately with the icon missing" until it's loaded.

@80bit Thanks for the mention in the credits, it's optional but appreciated none the less.
Hope this helps.
B
11
S
2
G
1
Posts: 202
Reputation: 1,580

Post » Wed Feb 25, 2015 3:15 pm

i tested it on chrome desktop , and other browser ( Baidu spark ) , it work and on android it worked on mozilla but not on chrome or chrome beta :( , i really loved the plugin , i need it badly for my mobile application , and i will build using Crosswalk , is it no going to work , because crosswalk is built on chromium project ?
B
12
S
6
Posts: 118
Reputation: 1,466

Post » Mon Mar 02, 2015 7:51 pm

Maybe this helps, it's a list of compatible browsers: http://caniuse.com/#feat=notifications
Support for other browsers/devices is just a matter of time.
B
11
S
2
G
1
Posts: 202
Reputation: 1,580


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 1 guest