twebbrowser does not give camera and microphone permission in Android (Delphi 10.4) - firemonkey

I'm creating a video chat with Jitsi, using Delphi's TWebBrowser (10.4).
When I access the page meet.jit.si/test123 the camera and microphone are not enabled.
Even with the permissions:
Dangerous.Camera
Dangerous.RecordAudio
Dangerous.ReadExternalStorage
Dangerous.WriteExternalStorage
Standard.ModifyAudioSettings
Standard.Internet
These permissions were given both in the code and in the project.
PS.: In my new project in comunnity edition its working, in my Delphi Enterprise don't (
development environment).
I tried to use another way of release, but the release messages appear correctly.

Related

Submit a Unity app to Windows store

I have a unity app built for Windows desktop. Client wants this to be distributed through Windows 10 Store. This is just a desktop app and has no support to tabs or phones.
But looks like with Windows 10 there is no desktop only option.
Is there any documentation on what are the steps I need to follow to submit the unity built app to Windows store?
I did some reading and looks like this is what I will have to do.
https://channel9.msdn.com/Blogs/One-Dev-Minute/How-to-publish-your-Unity-game-as-a-UWP-app
https://learn.microsoft.com/en-us/windows/desktop/win_cert/windows-certification-portal
But want to get a confirmation from some one who has already done that. As I don't have a Windows developer account right now to try that out.
Is there any documentation on what are the steps I need to follow to submit the unity built app to Windows store?
The steps of publishing a unity app is similar to UWP app. You can refer to App Submissions for more details.
After your packages have been successfully uploaded, you will find the Device family availability section that indicates which packages will be offered to specific Windows 10 device families.
For your requirement, you could check Windows 10 Desktop device option, as the follow picture shows:
For more info, you could refer to Device family availability official document.

Deployment of app to device failed

I have Xamarin Live Player up and running.
When I use it with a newly created Xamarin Forms (Master Details) app, it works fine. I see the app on the device.
However, when I try to run my full-blown app, Visual Studio tells me "Deployment to device failed. Make sure that Xamarin Live Player is open and that the device is in the same network."
Since the new app runs fine, I guess something else is the problem.
I've already set the Android project properties to be same as the newly created app.
Just to make sure, I've made it so that my full-blown app requests all rights.
How could I debug more in detail what's going wrong?
Xamarin Live Player can't run all apps. As soon as you use reflection, embedded resources, a MVVM framework or a custom renderer in Xamarin.Forms it might simply just not run the App.
You can read about the limitations of Xamarin Live Player in the official documentation for it.
You will probably have a much better experience just running directly on the device without Live Player.

What is the Idiom type for Xbox?

I have a UWP app created using Xamarin.Forms and I uploaded it on Microsoft Store, I enabled Microsoft to decide which platforms can I support, Xbox was automatically selected by Microsoft. I cant unfortunately test it since I dont have Xbox or any emulator available. But I am seeing that there are some downloads and Microsoft Developer Console shows the type as "Console"...
Now my question is on Xamarin.Forms doesnt have that idiom as Console, it is defined here as phone, tablet, desktop, tv, Unsupported... how to check for Xbox?
This is not built into Xamarin.Forms, so you will have to use Windows-specific API to recognize if the app is running on Xbox. You can implement a custom Dependency service that will have an interface which you will implement in UWP project. The documentation will tell you how to do it.
Then to check which type of device the app is actually running on you can check the value of:
Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily
This property contains a value depending on which type of hardware the app is currently open:
"Windows.Xbox"
"Windows.Mobile"
"Windows.Desktop"
"Windows.Team"
"Windows.IoT"
"Windows.Holographic"

Xamarin Device Manager only shows Google play images in device manager screen

I have observed the following in the new Xamarin Device Manager for VS 2017 (15.6.4).
If i try to create a new device i can only choose between system images for sdk versions where the Google Play image has been installed.
But if i edit the device profile that was the default and created with the google api's not the play ones, i can without any issue choose all the system images installed. So it seems the Xamarin Device manager only looks for Google play system images and not for the google apis ones.
So a workaorund for now would be to copy the "existing" 7.1 device profile and edit that.
Can someone confirm this issue ?
Image shows that only Android 7.0 and 8.0 can be selected and are installed
SDk Manager shows that several system images are installed not just the ones we are able to choose in the create new dialog.
If editing device profile that was based on Google APIs not Play all images can be used
You can switch Google Play/Google APIs/Default images via tag.id property in the editor.

Does Xamarin support to develop apps for Windows surface and how well?

I want to develop an app for Windows surface tablet and iOS mobile and iPad.
As I am a new user to Xamarin, when I created my first project,it shows 3 projects:-
hello.driod, hello.ios and hello.winPhone.
I have 3 questions based on this:-
How will I be able to write the same code and share for windows 8.1 and iOS?
and whenever I drag and drop the elements to the UI page, will the same elements be copied to both windows and iOS simultaneously or I got to add them seperately?
Currently I dont have a MAC to connect to my PC. Can I write the code and and there while testing it, connect it to a MAC or should it be connected during the whole process?
Please Help!
Using the same code depends on how your structure your app.
You can go the native route where you can share the bulk of your logic by containing it in a shared / PCL project (more on that here), but have platform specific code for your UI.
For example, if you have a cross platform app targeting iOS and Android you would still create the UI in a storyboard for iOS and AXML files for Android. Any code you want to "connect" to your UI would be specific to that platform as you would use the platform APIs. Any code that is not platform specific (i.e., not calling iOS or Android APIs) can go in your shared / PCL project.
Or you can choose Xamarin.Forms which adds a layer of abstraction by allowing you to write the UI in XAML once and have it work on all platforms. The advantage is increased code sharing as now your UI is also shared. The downside is to utilise platform specific features you'll need to implement DependencyService or custom renderers. Read more about Xamarin.Forms here.
As above, it depends. If you are going the native route, then no. If you are going with Xamarin.Forms, then you are using the same XAML code for the UI across platforms, but there is no drag and drop designer.
To build an iOS app you need to be connected to a Mac. You will also need to be connected to a Mac to use the iOS Designer.

Resources