Pusher.js not working with ionic


#1

I’ve integrated the pusher.js library into my app for receiving real-time messages. It seems to work fine in a web browser but when I install it on to the device, both ios and android it doesn’t seem to work.

Has anyone had experience with pusher.js on cordova and had success getting it to work? Is it compatible with cordova? Are there some restrictions on cordova/ionic that would prevent a library like pusher.js to work?


Realtime communication practices with ionic
#2

I believe web sockets isn’t available in the horrible webview browsers, so you have to use the native websockets. luckily there is a cordova plugin, search “cordova web sockets”.