0

I am building a simple app with Laravel 4 as backend, Angular JS as frontend and MySql.

So far, i am using long polling for any update in database, for this i have to fire $http request from client to server after every 5 minutes.

I need something like Push Notifications which notify a client server that there is an update in database from server side.

I've searched a lot of things but just found Push Notification for Android and iOS only.

Is there any Library or Method available to implement Push Notification for Angular JS in Laravel 4?

Help Please, It would be appreciated.

2
  • Maybe this package helps? github.com/davibennun/laravel-push-notification Commented Nov 12, 2014 at 13:35
  • i already go through this package but i found that this is for iOS and android. it uses GCM ( Google Cloud Messaging ) for android in which needs Android 2.2+ version. Commented Nov 12, 2014 at 13:40

1 Answer 1

2

The best solution would be to use WebSockets. I suggest using Ratchet (WebSockets for PHP). There is also the problem of WebSockets browser support which you need to take into consideration (but that can be overcome by using the websocket.js polyfill).

Sign up to request clarification or add additional context in comments.

2 Comments

How much is this reliable? and any other options for this?
Who uses this(Ratchet)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.