netanelgilad / polyfill-angular-server

0 stars 1 forks source link

server -> client? #3

Open uriva opened 9 years ago

uriva commented 9 years ago

Just sharing some thoughts -

Might be cool to have the opposite direction too; a client exposing a provider to a server. This can probably be achieved using meteor collections or cloud messaging services.

Although I'm not sure how important this is when all data is available in server side. It could be useful in the case of sensors, location for example, but that would be pretty easy to achieve when app is in foreground. When app is in background this would mainly be cordova plugins work.

Come to think about it, cloud messaging could also be used to make angular-server independent of meteor.

Some related work: https://github.com/raix/push

netanelgilad commented 9 years ago

That is an awesome idea @uriva! I am using raix:push myself currently, but having a client expose a provider to the server would make life a lot easier when doing notifications and such.. This defently goes in my backlog for further thought. When I'll have some direction i'll share it here, if you have more ideas, share them here as well.