Skip to content

MessagingUnityPlayerActivity breaks Unity's Application.deepLinkActivated callback #661

Open
@AntonyJBlackett

Description

@AntonyJBlackett

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%

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions