New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 729256 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 631464
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: ----



Sign in to add a comment

fcm is not supported under headless mode

Reported by bdir...@gmail.com, Jun 3 2017

Issue description

Chrome Version       : Google Chrome 59.0.3071.83 beta
URLs (if applicable) : https://groups.google.com/a/chromium.org/forum/#!topic/headless-dev/i-aVV_pmc-E

What steps will reproduce the problem?
(1) running a page with the following javascript
```
import 'firebase/firebase-app'
import 'firebase/firebase-messaging'


firebase.initializeApp()
let messaging = firebase.messaging()
messaging.requestPermission()
.then( () => {
  console.log('success!');
).catch( (e) => {
  console.log('error: ', JSON.stringify(e));
})


What is the expected result?
success should be printed to console

What happens instead?
error: {"code":"messaging/permission-default","message":"Messaging: The required permissions were not granted and dismissed instead. (messaging/permission-default)."}"

Please provide any additional information below. Attach a screenshot if
possible.
I didn't see Brendan McCarthy post a ticket. So I will.

https://groups.google.com/a/chromium.org/forum/#!topic/headless-dev/i-aVV_pmc-E
 
Cc: krajshree@chromium.org
Components: Internals>Headless
Labels: Needs-Feedback
bdirito@ - Thanks for filing the issue...!!

Could you please provide a sample URL or html file to test the issue from TE-end.
This will help us in triaging the issue further.

Thanks...!!
Mergedinto: 631464
Status: Duplicate (was: Unconfirmed)
We're still missing functionality to deal with permissions in headless. We're looking into adding commands to grant/deny permission requests via DevTools, see  bug 631464 .

Sign in to add a comment