Sylvain2703/MessengerUWP

Call don't work

ArcheoCodix opened this issue · 2 comments

Hello, big thanks by Windows Phone users.
(I'm french, sorry for my bad english)

Describe the bug
I can't call on app or answer calling.

To Reproduce
Steps to reproduce the behavior:

  1. Go to friend's profile.
  2. Click on phone or camera button to up right
  3. Nothing append.

OR

  1. Someone calling you.
  2. Wait calling popup appear.
  3. click on answer.
  4. Popup close and nothing append.

Expected behavior
Calling, discut with camera.

Screenshots
If applicable, add screenshots to help explain your problem.

Device and Application Information

  • Facebook Messenger Version: V2
  • Device Family: Windows Phone
  • Device Model: Lumia 950
  • OS Build:
  • Architecture: ARM
  • Application Version: 0.2.1
  • Region: Europe, France

Additional context
Button become clearly after click.
I have dump if you want but I don't know how to use or export it.

Thank you very much for your work..

Hello,

Thank you for opening this issue and your support.
Currently, it's a "normal" behavior because calls are not supported yet.

I need to take time to do all the necessary changes:

  • Requesting microphone and camera permissions,
  • Improving CSS to ensure a good UI for small screens,
  • Testing it.

I will try to do my best to add it as soon as possible.

After looking for a way to implement this feature, I'm facing an issue.

How it works on the Messenger website:
It opens a new window (with window.open(...)) for the call UI. Due to the current Messenger implementation, the main Messenger window need to know the window instance of the new window (with the call UI).

The problem:
With a WebView, calling window.open(...) opens the page in the default web browser.
We can use the webView.NewWindowRequested event to handle it and to create a new UWP window (using CoreApplication.CreateNewView() and ApplicationViewSwitcher.TryShowAsStandaloneAsync(...)) with another WebView.

Now, I need to pass the window instance of the new WebView to the main WebView and I didn't find a solution to do it.