firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
215 stars 35 forks source link

DynamicLinksComponents missing NavigationInfoParameters #373

Closed simsis3d closed 1 year ago

simsis3d commented 4 years ago

Please fill in the following fields:

Unity editor version: 2018.4.12f1 Firebase Unity SDK version: 6.8.1 Firebase plugins in use (Auth, Database, etc.): Dynamic Links and Analytics Additional SDKs you are using (Facebook, AdMob, etc.): Facebook and Admob Platform you are using the Unity editor on (Mac, Windows, or Linux): Windows Platform you are targeting (iOS, Android, and/or desktop): Android and IOS Scripting Runtime (Mono, and/or IL2CPP): IL2CPP

Hey to all, I have a few questions regarding Dynamic Links:

  1. i had android and ios apps on firebase with package name/bundle Id "com.SimgeSimulation.CanliKelimeOyunu", Then i deleted these apps and added new ones with package name/bundleId "com.SimgeSimulation.WordGame". i deleted old json/plist files and impoted new ones, and updated all the codes with new bundle ids, etc. But when i create a new dynamic links with updated infos, and debug it (You can see here https://stockwordgame.com/invite/invite?d=1) it shows an error that "Android app 'com.SimgeSimulation.CanliKelimeOyunu' lacks SHA256. AppLinks is not enabled for the app." Why still shows old bundle id? Even new bundled id has SHA256
  2. https://firebase.google.com/docs/dynamic-links/create-manually this link says there is a paremeter(efr in Navigation parameters) about app preview page, but i couldnt find it in Firebase Unity SDK! There are Android parameters, IOS parameters, etc. but not Navigation parameters.

I am about to publish my game but still mess around Dynamic Link integration. Please help me.

google-oss-bot commented 4 years ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

stewartmiles commented 4 years ago

1) If you change your bundle ID you'll need to update your signing key in the Firebase console with the new bundle ID then download the new configuration files (google-services.json & GoogleService-Info.plist). After you've added the configuration you'll need to make sure the resource generator for Android runs which should update Assets/Plugins/Android/Firebase/res/values/google-services.xml, you can force this by switching between Android and another build target and back or delete the Assets/Plugins/Android/Firebase/res/ folder and google-services.json then re-add google-services.json to your project. 2) You're right it looks like NavigationInfoParameters Android and iOS wasn't added to the original API 2+ years ago. What you'll need to unfortunately do is create a long link manually using DynamicLinkComponents.LongDynamicLink then append the query parameter &efr=1 to the end of the link, this URI can be passed to DynamicLinks.GetShortLinkAsync[https://firebase.google.com/docs/reference/unity/class/firebase/dynamic-links/dynamic-links#class_firebase_1_1_dynamic_links_1_1_dynamic_links_1a894543ef0115aec448fda6b16a4492d3] to generate the short link.

simsis3d commented 4 years ago

Hey @stewartmiles i already deleted old apps with old bundle ids and added new ones. Downloaded new json and plist files to Unity and did the steps as exactly you said about Assets/Plugins/Android/Firebase/res/ file. But still no way, it shows old bundle id. Even when i create a dynamic link from firebase dashboard(not from the code), it shows same error with old bundle id.

stewartmiles commented 4 years ago

@simsis3d to validate the client state you should open up Assets/Plugins/Android/Firebase/res/values/google-services.xml and make sure the bundle ID matches what you expect.

The issue on the console can't really be debugged via a github issue. I recommend you open an issue via https://firebase.google.com/support and then we'll have an agent take a look at your Firebase project to see what's going on.

simsis3d commented 4 years ago

@stewartmiles this file does not contain any Package name/Bundle ID value, but it contains "google_app_id" which is same with the dashboard which is as expected i think. So the only way remains is contacting with Firebase support i think? Thanks for your quick help.

paulinon commented 1 year ago

Hi @simsis3d,

Please note that the Firebase Dynamic Links service will be shutdown on August 25, 2025. For now, only critical or security issues will be fixed in the SDK.

You may refer to https://firebase.google.com/support/dynamic-links-faq for more information.