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 6614005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:17:12+00:00 2026-05-25T20:17:12+00:00

I need to create a facebook-like notification system for an app I am working

  • 0

I need to create a facebook-like notification system for an app I am working on. I was wondering what suggestions any of you have for how to go about doing this? If possible, I would like to avoid using the database for the notifications, if this is feasible I’d love to know how.

Thanks in advance

  • 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-25T20:17:13+00:00Added an answer on May 25, 2026 at 8:17 pm

    It wasn’t clear in the question if notices needed to persist across sessions or user-to-user (who may not be online at the same time); however, I had a similar need on a Rails app and implemented it through a Notice ActiveRecord model. It’s used for broadcasting downtime and other pending events coming up across every page on the site. Notices will show ahead and during their scheduled times.

    class Notice < ActiveRecord::Base
      validates_presence_of  :header
      validates_presence_of  :body
      validates_presence_of  :severity
      validates_presence_of  :start_time
      validates_presence_of  :end_time
      validates_inclusion_of :severity, :in => %( low normal high )
    end
    

    Since it needed to be displayed everywhere, a helper method was added to ApplicationHelper for displaying it consistently:

    module ApplicationHelper
      def show_notifications
        now = DateTime.now.utc
        noticeids = Notice.find(:all, :select=>"id", :conditions=>['start_time >= ? or (start_time <= ? and end_time >= ?)', now, now, now])
        return "" if noticeids.count == 0 # quick exit if there's nothing to display
        # ...skipping code..
        # basically find and return html to display each notice
      end
    end
    

    Lastly, in the application layout there’s a tiny bit of code to use the ApplicationHelper#show_notifications method.

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

Sidebar

Related Questions

I need to create a wall system just like Facebook's (users can post messages,
I need to create a simple Chat system like facebook chat and a twitter-like
this is my first post here. I need create a feed like facebook with
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>
I almost have facebook connect working the way I need it on my site,
I am trying to create a complex nested object like this: { user:{ type:facebook,
I have followed this tutorial which uses jQuery UI to generate Facebook tokens like:
I'm creating a facebook application at the moment and need to create a comment
I have something like Facebook's Wall build on PHP that uses MySQL database. Structure:
I have a snippet to create a 'Like' button for our news site: <iframe

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.