Raising alerts from backend javascript

185 views Asked by At

I'm building an app with Meteor and Meteoric (integration with Ionic, which replaces the angular with blaze). I have a method running on server which I want it to popup alert for the user if some condition is met, but of course I can't do so because Ionic is a client side framework.

I tried to return a variable to the place in client where I call the method and make it raise the popup but it just ignores it. (Maybe because I can't really do it between client and server?)

Anyone has a suggestion for this?

1

There are 1 answers

2
Nils On

You could make a request from the client to the server, and depending on the response on the client you can alert (or continue if for example nothing went wrong). What did you try already? And what is the method doing?