Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Need help from an Android Facebook expert!

Discussion in 'Android' started by DanTaylor, Jun 4, 2015.

  1. DanTaylor

    DanTaylor

    Joined:
    Jul 6, 2013
    Posts:
    119
    Hi there!
    I am having a weird (and extremely frustrating) issue with my Unity project on Android.
    Here are the details...
    • I am using immersive mode
    • When the app connects to Google Play, the title bar and nav menu always pop in
    • When calling the Facebook App Request dialog, the nav menu pops in, and the dialog is cropped at the top, as if hiding behind the title bar(see image)


    I am assuming that this is some error in my manifest file... but as far as I can work out, these elements should be appearing fullscreen with neither the title bar nor nav menu! Here is a snippet of my manifest which sets the style for the offending elements...
    Is there a manifest expert that can give me some pointers?

    Thanks,
    Dan
     
  2. DanTaylor

    DanTaylor

    Joined:
    Jul 6, 2013
    Posts:
    119
    So, after doing a lot of digging, this looks like it could be a bug in the Unity Facebook SDK...

    https://developers.facebook.com/bugs/1632553866981368

    ...which FB are claiming is "as designed". Not sure that is actually correct there, Facebook!

    Is anyone else having the same issue? If so, please pester Facebook using the above link and get them to fix it!

    Thanks,
    Dan
     
  3. WTDrew

    WTDrew

    Joined:
    Jun 17, 2015
    Posts:
    1
  4. DanTaylor

    DanTaylor

    Joined:
    Jul 6, 2013
    Posts:
    119
    Yes indeed! I forgot to update this post with the fact that I raised a new bug and apparently FB are working on it! :D
     
  5. Wappenull

    Wappenull

    Joined:
    Oct 29, 2013
    Posts:
    48
    Hi, Dan,
    I appreciate your work for firing the bug report on Facebook!

    I'm having the same issue as well, although I'm on Unity 5.
    (Tried switched to FB SDK 7, but decided to switch back to 6.2.2 after seeing a lot of thing broken instead. :( )
    I may have to considering workaround this by either:
    - Blackout my entire screen so that at least it has uniformly black background. (FB dialog itself is still cropped though)
    - Consider adding notification bar back when this dialog is invoked. (Not sure if this possible yet)

    P.S.: Candy Crush on android do have full screen app request dialog without problem, so this happen only in Unity, I presume.