Skip to content

Instantly share code, notes, and snippets.

@DVDPT
Created September 2, 2020 09:52
Show Gist options
  • Save DVDPT/a8cadb1f658be28e552f2ccd0bba3291 to your computer and use it in GitHub Desktop.
Save DVDPT/a8cadb1f658be28e552f2ccd0bba3291 to your computer and use it in GitHub Desktop.
package com.imaginationoverflow.unity;
import android.content.Intent;
//
// Used to workaround a Firebase known bug for Android (https://github.com/firebase/quickstart-unity/issues/661)
// where the Universal Deep Linking can't get access to the Intent when Firebase is enabled
//
//
// Universal Deep Linking on the Asset Store: https://assetstore.unity.com/packages/slug/125172?aid=1100l8RBa
// Universal Deep Linking Pro on the Asset Store: https://assetstore.unity.com/packages/slug/135654?aid=1100l8RBa
//
public class IOFirebaseActivity extends com.google.firebase.MessagingUnityPlayerActivity {
@Override
protected void onNewIntent(Intent intent)
{
this.setIntent(intent);
super.onNewIntent(intent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment