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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:36:13+00:00 2026-05-20T04:36:13+00:00

I am trying to implement support for WebKit’s native desktop notifications on my site.

  • 0

I am trying to implement support for WebKit’s native desktop notifications on my site. When I try to ask for user’s permission to use the notifications, absolutely nothing happens. For example, the following HTML does not prompt Chrome to ask me for permission:

<html lang="en">
<head></head>

<body>
    <h1>Testing</h1>
    <script>
        window.webkitNotifications.requestPermission();
    </script>
</body>
</html>

I know that there is no problem with my version of Chrome because other sites (e.g. http://www.html5rocks.com/tutorials/notifications/quick/) work perfectly fine: I can see both the prompt and the subsequent notifications.

  • 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-20T04:36:13+00:00Added an answer on May 20, 2026 at 4:36 am

    Check the specification at chromium api docs. You can call it only as a feedback to user gesture/action – mouse click etc.

    requestPermission Requests that the
    user agent ask the user for permission
    to show notifications from scripts.
    This method should only be called
    while handling a user gesture
    ; in
    other circumstances it will have no
    effect. This method is asynchronous.
    The function provided in callback will
    be invoked when the user has responded
    to the permission request. If the
    current permission level is
    PERMISSION_DENIED, the user agent may
    take no action in response to
    requestPermission.

    UPDATE 2014-10-01: In Chrome 37, the user gesture requirement was removed. It should now be possible to request permission to display notifications at any moment. If you wish to target older versions of Chrome as well (eg. in a corporate environment), you’ll probably need to continue relying on user gesture events.

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

Sidebar

Related Questions

I'm trying to implement scheduler to my application. I use spring and quartz support.
I am trying to implement ajax back/forward button support and therefore writing variables after
I'm trying to implement a Visual Studio Addin to support cross-platform development. The addon
I am trying to implement fragments into an old app so I can support
I'm trying to implement a HashMap-based tree that'd support O(1) subtree lookup for a
I'm trying to implement undo support using Core Data on the iPhone and I
I'm trying to implement a server-client socket program in Java that can support multiple
In my program, I am trying to implement support for dual-stack operation (both IPv4
Iam trying to implement HTTPS support with the help of curl. Since HTTPS is
We're trying to implement formsAuthentication on our site, but in a scenario that we

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.