Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Action Cable and Ionic

I have a Rails Application in production environment and now I need to develop a Mobile App as a "frontend" for the same system.

We are already building an API, but many users will be able to change data at the same time, therefore, would be nice some real time integration.

Would it be possible to integrate Action Cable in an Ionic App? Is there any other good alternative to Action Cable + Ionic?

Regards

like image 667
gcstr Avatar asked Apr 13 '16 06:04

gcstr


1 Answers

YES, all you need is to include the actioncable javascript into your ionic project. https://github.com/mwalsher/actioncable-js

Just create a service, or even use an angular-ready actioncable package like this: https://github.com/angular-actioncable/angular-actioncable

Bottom line, its just javascript. this is all client side stuff so it doesn't matter if you're using ionic or any other client side framework, as long as you have the server side setup in your rails app to connect to.

like image 137
Ricky Brown Avatar answered Oct 07 '22 05:10

Ricky Brown