firebase / firebase/quickstart-unity

MessagingUnityPlayerActivity breaks Unity's Application.deepLinkActivated callback

Open
#661 3 comments 3 reactions 1 assignee Claimed by @alexames View on GitHub
api: messaging type: bug
Dominant language
C#
Stars
923
Forks
456
PR merge metrics
No merged PRs in 30d

Description

Please fill in the following fields:
Unity editor version: **2019.3.10f1**
Firebase Unity SDK version: **FirebaseMessaging_version-6.13.0**
Source you installed the SDK: **.unitypackage**
FirebaseAnalytics.unitypackage: **Dotnet4**
Firebase plugins in use (Auth, Database, etc.): **FirebaseMessaging_version-6.13.0**
Additional SDKs you are using: **Just Unity stuff, UnityAds etc**
Platform you are using the Unity editor: **Mac**
Platform you are targeting (iOS, Android, and/or desktop): **Android, iOS, issue only on Android**
Scripting Runtime (Mono, and/or IL2CPP): **IL2CPP for iOS/Android**

**Please describe the issue here:**
When using the MessagingUnityPlayerActivity on android the deeplink callback provided by unity no longer works when the app is resumed.

Application.deepLinkActivated

Application.absoluteURL works on app launch, but not on app resume.

Not changing anything else except the activity back to com.unity3d.player.UnityPlayerActivity in the manifest makes it work again so I suspect there's something missing in the MessagingUnityPlayerActivity which needs to be there to support deeplinks.

Note that deep links do successfully launch the app but the link is not delivered to Unity once it's started when using the MessagingUnityPlayerActivity.

Extra Questions:
Have I tried importing the package again? **Yes**
Have I tried building without the SDK? **Yes and it works perfectly fine**
Have I tried reimport all? **Yes**
Have I tried relaunching Unity? **Yes**
Do I have both iOS and Android modules installed? **Yes**

What's the issue repro rate? **100%**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.