This document discusses using Pusher for push notifications. Pusher allows sending push notifications from a backend server to user interfaces like mobile and desktop apps. It avoids problems with polling by using websockets for real-time notifications. The document explains how to set up Pusher by creating an account and app, and integrating it into server-side code using various languages like Ruby, and client-side code using JavaScript or React Native.
9. Jyaasa : We Design, Build and Develop Products
- Joomla Extension
- Chat extension
10. Jyaasa : We Design, Build and Develop Products
setInterval(checkAndPullMessage, 1000);
function checkAndPullMessage(){
// Ajax call to check and pull message
// …………..
}
12. Jyaasa : We Design, Build and Develop Products
A push notification is a message that is "pushed"
from backend server or application to user
interface, e.g. (But not limited to) mobile
applications and desktop applications.
Push Notification
13. Jyaasa : We Design, Build and Develop Products
Why?
14. Jyaasa : We Design, Build and Develop Products
How?
15. Jyaasa : We Design, Build and Develop Products
● Faye service (Sarbada)
● Action Cable (Kamal and Kuber)
● Pusher
● ….
16. Jyaasa : We Design, Build and Develop Products
Pusher
17. Jyaasa : We Design, Build and Develop Products
● https://pusher.com/
○ Create account
○ Create new app
18. Jyaasa : We Design, Build and Develop Products
● Curl, Ruby, Rails, Node.js, Python, PHP,
Go, Java etc
● Available pusher gem
○ gem install pusher
○ gem ‘pusher’
Server side
19. Jyaasa : We Design, Build and Develop Products
Rails configuration
20. Jyaasa : We Design, Build and Develop Products
Rails Implementation
21. Jyaasa : We Design, Build and Develop Products
JavaScript, IOS (Obj-c), iOS (Swift), Android
(Java), React Native
Client Side
22. Jyaasa : We Design, Build and Develop Products
JavaScript
23. Jyaasa : We Design, Build and Develop Products
JavaScript
24. Jyaasa : We Design, Build and Develop Products
React Native
25. Jyaasa : We Design, Build and Develop Products
React Native
26. Jyaasa : We Design, Build and Develop Products
Questions
Notas del editor
A common method of doing such notifications is to poll a script on the server (using AJAX) on a given interval (perhaps every few seconds), to check if something has happened. However, this can be pretty network intensive, and you often make pointless requests, because nothing has happened.
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks
Push notifications provide convenience and value to app users. For example, users can receive:
Sports scores and news right on their lock screen
Utility messages like traffic, weather and ski snow reports
Flight check in, change, and connection information
For app publishers, push notifications are a way to speak directly to a user. They don't get caught in spam filters, or forgotten in an inbox — click-through rates can be twice as high as email. They can also remind users to use an app, whether the app is open or not. They can also be used to drive actions, such as:
Promoting products or offers to increase sales
Improving customer experience
Converting unknown app users to known customers
Sending transactional receipts right away
Driving users to other marketing channels, such as social networks