Redirecting back to Android Unity app crashes on Firefox.

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.

Same behaviour on Duckduckgo browser as well, along with same logs.

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.