Closed ktaze1 closed 3 years ago
As you stated, the first issue seems to be about Android API 30 changes.
Yes the project should work out of the box from the template, but it's true that i didn't tested anything since API 28 or 29, but as API 30 is now mandatory, maybe something breaked ? Not totally sure, my actual debug builds are still working, but yes i didn't tested on a Device working on API 30.
I don't know what is actually throwing with SIGSEGV in your log, maybe it's the GeckoView component with the new Android API, but it can be some other component in the project, or just simply the Microsoft Debugger not stable on this Android API and VS2019 release, as it can happen, but maybe not.
I think i have to investigate on this. Can you test and confirm that the project work if you try to target some olders OS / API version, like something on API 28 or 29 ?
Thanks !
Also, take note that since end of July 2020, Microsoft started supporting Hybrid Blazor apps in their Mobile Blazor Bindings project. Even if it's in preview you may take a look at it, as they are running the Blazor Web app through the same memory area like a Blazor Server app (i imagine) on your device. I imagine there is a lot less overhead to manage, i didn't tested it at the moment. If the thing is working great out of the box, maybe i will start to sunset this project, as it will be less relevant. This was created 2 years ago at a time where Mobile Blazor Bindings was not existing yet, and this kind of functionnality too.
If you go test Mobile Blazor Bindings, Here is the documentation, the announcment was here
Hey, thanks for quick respond!
Upon testing with a API 28, it is indeed working. So thank you!
The reason why choose your project over Mobile Blazor Bindings is that I already have a project made with Blazor WebAssembly but I just need Notifications API on native side and that's all. With Mobile Blazor Bindings, I might need to reconstruct entire project and write a server (?) for it, because as I understand Mobile Blazor Bindings works like Blazor Server rather than a WebAssembly, at least project structure seems like it. I need to look into it more deeply.
Thank you again!
What is the problem about the server like model ? I think you can somehow workaround your issue with your initial project, if you move your Blazor UI logic in a Razor Class Library and instead then , having your base project for WASM on one side and the Mobile Blazor Binding referencing the RCL project on one other side.
This way you should I think be able to manage theses kind of scenarios. Don’t have tested it
Hey,
I just make a freshly new project and when I tried it run Android project first I had an
adb1000: Permission Denied
error. So I disable the "Use Fast Deployment" option from Android options in debug settings. (Saw this solution from a stackoverflow answer) First tried in Pixel 2 then Nexus One both with avd with R 11.0 - API 30. There is no build error. Not a single line of code added or deleted.To be clear, just running
dotnet new blazormobile -n MyProjectName
suppose to work right? Or do I need to connect this to another xamarin project? I had a tiring day already, I'll look into this with more clear head tomorrow but I highly appreciate if someone who encountered this can point me to right directionHow did I get this error:
dotnet new blazormobile -n MyProjectName
to a folderOn a side note, normally I could see csproj files but double clicking on android project doesn't work. Is this normal or it's some kind of bug?