App doesn't load correctly on Samsung phone with Android 7.0

Hi,

Our app isn’t loading correctly on Samsung phones with Android 7.0. The app opens, but it seems like the first view doesn’t come trough. When I tab on the icon, the phone opens an app-window but the view isn’t loading (seems transparent). I can’t interact with the homescreen because the phone thinks the app is open (which is). When I view the apps that are open the Hubper app is visible.
I’ve made a video of the problem.

The app works perfect on iOS and other Android devices. Could this be a problem with the Samsung theme? The example project works fine on the Samsung phone, so the bug should be in my project, but I don’t know what to search for.

Does anyone have an idea? Thanks!

Fuse version: 1.2.1 (build 13974)
OS: macOS

LOG in preview-mode:

Installing APK on 1 device(s)
Launching activity 'HubApp'
Running logcat on 0715f744c8441336
08-28 16:42:30.795 16762 16762 E Zygote  : v2
08-28 16:42:30.795 16762 16762 I libpersona: KNOX_SDCARD checking this for 10277
08-28 16:42:30.795 16762 16762 I libpersona: KNOX_SDCARD not a persona
08-28 16:42:30.797 16762 16762 E Zygote  : accessInfo : 0
08-28 16:42:30.798 16762 16762 W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2],  Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0005, [-1 -1 -4 -1 0 1]
08-28 16:42:30.800 16762 16762 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=co.hubper.app 
08-28 16:42:30.802  3655  4811 I ActivityManager: Start proc 16762:co.hubper.app/u0a277 for activity co.hubper.app/.HubApp
08-28 16:42:30.806 16762 16762 I art     : Late-enabling -Xcheck:jni
08-28 16:42:30.835 16762 16762 D TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
08-28 16:42:30.926 16762 16762 D HubApp  : SDK: 24
08-28 16:42:31.049 16762 16762 D libEGL  : loaded /vendor/lib/egl/libGLES_mali.so
08-28 16:42:31.088 16762 16762 D mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [1x1]-format:1
08-28 16:42:31.357 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: ThreadedRenderer.create() translucent=true
08-28 16:42:31.363 16762 16762 D InputTransport: Input channel constructed: fd=67
08-28 16:42:31.363 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: setView = DecorView@47cb9cf[HubApp] touchMode=true
08-28 16:42:31.387 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: dispatchAttachedToWindow
08-28 16:42:31.398  3655  3850 D InputDispatcher: Focus entered window: 16762
08-28 16:42:31.403 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true -817895424} surfaceGenerationChanged=true
08-28 16:42:31.403 16762 16836 I OpenGLRenderer: Initialized EGL, version 1.4
08-28 16:42:31.403 16762 16836 D OpenGLRenderer: Swap behavior 1
08-28 16:42:31.403 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: mHardwareRenderer.initialize() mSurface={isValid=true -817895424} hwInitialized=true
08-28 16:42:31.409 16762 16836 D mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [1440x2560]-format:1
08-28 16:42:31.414 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x1 surface={isValid=true -817895424} surfaceGenerationChanged=false
08-28 16:42:31.441 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
08-28 16:42:31.441 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: MSG_WINDOW_FOCUS_CHANGED 1
08-28 16:42:31.441 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -817895424}
08-28 16:42:31.442 16762 16762 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@ed25f5c nm : co.hubper.app ic=null
08-28 16:42:31.442 16762 16762 I InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
08-28 16:42:31.460  3655  4805 V InputMethodManagerService: Creating new session for client ClientState{5d4dda1 uid 10277 pid 16762}
08-28 16:42:31.469 16762 16777 D InputTransport: Input channel constructed: fd=77
08-28 16:42:31.486 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: MSG_RESIZED: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
08-28 16:42:31.490 16762 16762 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@5c8d265 nm : co.hubper.app ic=null
08-28 16:42:31.547 16762 16762 E HubApp  : Outracks.Simulator.DesignerNotRunning: 
08-28 16:42:31.547 16762 16762 E HubApp  :    at Outracks.Simulator.ProxyClient.OnNoResult(Uno.Collections.IEnumerable<Uno.Exception>)
08-28 16:42:31.547 16762 16762 E HubApp  :    at Outracks.Simulator.WaitForFirstResult`1.Execute()
08-28 16:42:31.547 16762 16762 E HubApp  :    at Outracks.Simulator.TaskThread`1.Run()
08-28 16:43:15.872 16762 16762 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@db93df4 nm : co.hubper.app ic=null
08-28 16:43:15.873 16762 16762 I InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
08-28 16:43:15.885 16762 16762 D InputTransport: Input channel constructed: fd=78
08-28 16:43:15.885 16762 16762 D InputTransport: Input channel destroyed: fd=77
08-28 16:43:21.426 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
08-28 16:43:21.427  3655 28064 D InputDispatcher: Focus left window: 16762
08-28 16:43:21.696 16762 16762 D ViewRootImpl@8d4fa2e[HubApp]: MSG_WINDOW_FOCUS_CHANGED 0

Hi, would it be possible for you to share the code that reproduces the issue? If it’s sensitive, you can put it here.

Hi Uldis,
thanks for your reply. I upload the code to your dropbox.

Uldis wrote:

Hi, would it be possible for you to share the code that reproduces the issue? If it’s sensitive, you can put it here.

Hi Uldis,

Did you found out whats wrong? We unpublished the Android app from the Play Store. Our client was getting to many reports on this bug from there users.

I’ve tried to get rid of the fuse-device plugin, but unfortunately that didn’t fix the Samsung bug.

I am investigating this issue right now. Will report back to you as soon as I know anything :slight_smile:

For some reason setting IsVisible="False" on <Android.StatusBarConfig /> and "ShowStatusbar": false, in the .unoproj makes the app not draw on Samsung devices. Removing it will make the app work. You can do that as a temporary fix.

I have never seen this issue before, need to investigate further

Hi Vegard, your fix works!

While I think hiding the status bar is nicer in this app it isn’t a showstopper. Thanks!

This also happens on my non-Samsung test device running stock 7.0. You should look in to this as a lot of people would like to make full-screen apps.

Same problem here, is there a estimate when this would be fixed?

We’re having the same issue, and we like to hide the statusbar for our app.
Is there an update available on this issue?

No, the issue is not resolved as of now.