Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6889927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:13:03+00:00 2026-05-27T06:13:03+00:00

I have a Rails web app that is used to gather data from an

  • 0

I have a Rails web app that is used to gather data from an iOS device running an app I have developed.

The Rails web server will be handling communication with the Apple Push Notification service, so the iOS app will be sending it the required Device Token and some other application specific data.

The Mac app will be communicating with the Rails app to push a message to an iOS device. Both the Mac app and the Rails web app will be running on the same Mac server, under the same user account.

The communication between the the iPhone and Mac apps and the Rails web app will be done using the RESTful web services exposed by the web app.

Once the iOS app has sent its data to the Rails web service, I need that data to be sent to the Mac App that will be running on the same server as the Rails web app, so that it know which messages need to be pushed and where they should be pushed to.

What should I be looking for if I want to communicate between a Rails web app and a Mac app on the same box?

I have looked into polling the web app from the Mac app via a RESTful service, but I don’t think this is the most elegant or efficient solution. Is there some way that I can invoke some action from the Mac app from Ruby?

Edit:

I’ve just read about NSDistributedNotifications and the the Distributed Notification Center. This sounds like what I’m looking for.

Is it possible to use RubyCocoa from the Rails app to send a distributed notification and have the Mac app listen for this notification?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:13:04+00:00Added an answer on May 27, 2026 at 6:13 am

    I think you can make your cocoa app implement a server which listen to a local port like localhost:28888 , and while your rails application receiving data from your iOS app, you can just sent it to localhost:28888

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails CMS app that manages content for a production web server
I have a Rails web app that shows data to user, however, that data
We have a web app running on Rails, using Devise and OmniAuth for user
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
I have a Rails project that is basically a simple web app for a
I have a rails app that makes web api call , the rails app
Im developing a Rails app that will contain a web front end as well
I have an external application uploading a file to my rails web app. (Developed
I have a web-app that was done in Rails 1.2.3 and I have just
Now that I have a working Rails 3 web app, I'd like to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.