Open Closed

Mobile MAUI Android Release build stuck on splash #6137


User avatar
0
Emanuele.Filardo created
  • ABP Framework version: v7.4.0 / 7.4.1 (7.3.2 no issue)
  • UI type: Blazor Server + MAUI mobile
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: no exception only stuck on splash screen when build Android in Release mode, no issue on Debug.
  • Steps to reproduce the issue:" create new solution with ABP SUITE with 7.4.1

I have tried to disable AOT, Trimming, repair/restore/update workloads

No issue with iOS


6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    How do I reproduce the problem, could you explain it in detail? thanks.

  • User Avatar
    0
    Emanuele.Filardo created

    Hi, simply create new solution with ABP Suite, launch an instance of Blazor Server and another for Android version of MAUI Mobile in "Release" build config:

    1. use adb reverse and remove #if DEBUG to use InsecureHandler for localhost;
    2. or change setting to use a production running version of ABP;

    I have same problem on different PC with last version of VS 2022. As I said I have tried to disable AOT, Trimming, repair/restore/update workloads, clear nuget cache, bin/odj folders, reset emulator. Same issue in phisycal device.

    My emulator logcat

  • User Avatar
    0
    jfistelmann created

    can you try one thing (its a bit of effort though)

    remove all localizations in appshell and in the main page (or whatever would come first). goal is that the app can load without needing the localization as they are loaded from the server.

    that could be a starting point

  • User Avatar
    0
    Emanuele.Filardo created

    Your suggestion solve this issue for Android release build, removing all {ext:Translate... }from XAML allow app to start on work as expected. I had thought about localization, but I had only checked that the server was responding to requests, I hadn't thought about removing it from the app.

    So this is a bug in ABP MAUI only for Android... I've wasted many hours and days looking for the reason, next time I'll ask first. Even if I have many unused questions, if it is possible the refund would be appreciated :-)

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Ok, your ticket was refunded.

    It looks like a bug, I will check it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    This is the solution:

    https://github.com/abpio/abp-commercial-docs/pull/592

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15