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. Dismiss Notice

Redirecting back to Android Unity app crashes on Firefox.

Discussion in 'Editor & General Support' started by sgt3v, Apr 9, 2019.

  1. sgt3v

    sgt3v

    Joined:
    Feb 19, 2017
    Posts:
    28
    Hello,

    The app I work on redirects the user to web browser for logging in the the browser sends the user back to the app using deep linking with some necessary info. This works totally fine with Chrome, Opera and Brave browsers, however on Firefox it fails to return back to the app crashes and restarts the app. Does anyone have any advice how to fix this issue and get this working on Firefox.

    I use a plugin for deep linking yet the issue is unrelated to the plugin. When the plugin is removed and deep linking is provided only using AndroidManifest.xml the similar behaviours are observed on both working browsers and Firefox.

    Here is the log I get from logcat. Logs start from going to the browser and the crash occurs at line 42.
    https://pastebin.com/3SiS8VC3
     
  2. sgt3v

    sgt3v

    Joined:
    Feb 19, 2017
    Posts:
    28
    Same behaviour on Duckduckgo browser as well, along with same logs.
     
  3. sgt3v

    sgt3v

    Joined:
    Feb 19, 2017
    Posts:
    28
    Just now I compared the chrome and firefox logs line by line and noticed something I missed earlier.

    W/Unity: UnityPlayerNativeActivity has been deprecated, please update your AndroidManifest to use UnityPlayerActivity instead.


    Shortly, Updating UnityPlayerNativeActivity to UnityPlayerActivity in AndroidManifest.xml fixed the issue.