Push Notification doesn`t appear in the client side in my rails App (Pusher API)
Hello everyone, i use Pusher Notification in my App , i integrated pusher API correctly in my rails App and in Pusher.com appear the the server sent a Notification but it doesn`t appear in the client side
i included all files that the project need (jquery,PusherNotifier.js, etc )
- <script>
- var NOTIFY_ENDPOINT = '/assets/notify.html';
- $(function() {
- $.ajax({
- url: NOTIFY_ENDPOINT,
- data: {"message": "I'm a notification!"}
- });
- var pusher = new Pusher('af30f81da233dd0925b2', {encrypted: true});
- var channel = pusher.subscribe('my_notifications');
- channel.bind('my_event',function(data){
- var notifier = new PusherNotifier(channel);
- });
-
- });
- </script>