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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:00:03+00:00 2026-05-29T09:00:03+00:00

I am using the below code to show notification. But it is not working.

  • 0

I am using the below code to show notification. But it is not working. Please help me on this

 $(document).ready(function(){
  if (window.webkitNotifications.checkPermission() == 0) {
       var popup = window.webkitNotifications.createNotification
                    ("", "Notifier", "Properties will be displayed like this");
       popup.show();
  } 
 });

With the above code I could not see any 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-29T09:00:04+00:00Added an answer on May 29, 2026 at 9:00 am

    I see you’re using $(document).ready() and perhaps you are also using that kind of thing to request for permission. This cannot be done and must be requested on a user action like the click of a button:

    However, it’s very important to remember that the requestPermission method only works in event handlers triggered by a user action, like mouse or keyboard events, in order to avoid unsolicited infobars. In this case, the user action is the click on the button with id “show_button”.

    http://www.html5rocks.com/en/tutorials/notifications/quick/#toc-step3

    Double check your window.webkitNotifications.checkPermission() value and you might find it’s not actually 0 unless you request under the condition of a user action.

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

Sidebar

Related Questions

I hid my notification bar and title bar using below code. But Now, I
In past, I am using Listview and using below code can show a particular
I am using the below code to close the window, by searching the window
I am using the below code to block the taskbar which is working perfectly.
I am using below code to show hide my subview: [self.view addSubview:selectorView]; [selectorView setFrame:CGRectOffset([selectorView
UPDATE: I've edited the code below to show what I was using when I
I am using below code to show Y axis of jqPlot at right side
Using the below code I am unable to show the open/save as file dialog:
I am using the below code for saving an image to SD Card. But
Warm greetings, I'm using the below code to show an annotation on an iOS

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.