Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ring when receiving a call and the app is open but in background #96

Open
rodrigomonelos opened this issue Oct 12, 2017 · 2 comments
Open

Comments

@rodrigomonelos
Copy link
Collaborator

No description provided.

@gmarcos87
Copy link
Collaborator

gmarcos87 commented Oct 13, 2017

Esto ya es posible en el navegador tipo desktop, sin embargo hay una nueva limitación en PWA (una más...) que genera el siguiente error:
DOMException: play() can only be initiated by a user gesture.
Investigando en Internet encontré que chrome en mobile evita la reproducción de audios si no es fruto de una acción directa del usuario (un click por ejemplo).
Entonces cuando queremos reproducir un sonido fruto de un evento externo al usuario (llamada entrante por ejemplo) no lo podemos hacer. Al menos en las versiones actuales.
Capturo el error para que no intervenga con el funcionamiento normal de la app, pero lamentablemente no tenemos la capacidad de reproducir sonidos a nuestro antojo en el app cliente.
@rodrigomonelos

@rodrigomonelos
Copy link
Collaborator Author

It is working for me now @gmarcos87 when I receive a call and the app is open in background. You said that the sound I hear is from the notification, and I do not see a problem there. Is there a problem? For me as a user this that is happening is already fine.

gmarcos87 added a commit that referenced this issue Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants