FastPokeMapDev / FastPokeMap-Frontend

Frontend for FastPokeMap.se
MIT License
17 stars 16 forks source link

Adding a notification system for certain pokemon #5

Open Sossenbinder opened 8 years ago

Sossenbinder commented 8 years ago

It might be beneficial to add a notification system which can be filtered for certain pokemon just like the current filter.

As soon as this pokemon would spawn, a small notification panel could be displayed - It might be difficult to do this with window.alert(), due to its blocking nature, considering the notification trigger would have be be built into the routine which converts the data to actual map markers.

This could provide a better experience for users which live in cities with a huge density, or for those who figured out how to periodically scan with javascript already. It should not be a default feature, though.

I could imagine having the notification checkbox placed in the filter menu as well.

FastPokeMapDev commented 8 years ago

I'm studying html5 notification api but there are several limitation : background serviceworker / push can't access geoloc dataa, serviceworker has a limited "life" cycle, etc.