Firebase Android: Email Link Authentication. Intent-filter Not Working
Solution 1:
I just have the same problems as you. To solve it I remove the pathPrefix and set the url of my domain instead of the dynamic links in the intent filter and it seems to work.
<intent-filter><actionandroid:name="android.intent.action.VIEW" /><dataandroid:scheme="https"android:host="myfirebaseId.firebaseapp.com"/><categoryandroid:name="android.intent.category.BROWSABLE" /><categoryandroid:name="android.intent.category.DEFAULT" /></intent-filter>
Hoping it will help
Solution 2:
I had the same problem as you. I have solved it. In the manifest, in android:host I do put a Dynamic link domain!
Like thay said in https://firebase.google.com/docs/dynamic-links/android/receive
Note that the android:host must be set to your Dynamic Links domain, and not the domain of your deep link.
In Manifest:
<intent-filter><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.BROWSABLE" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:host="myDynamicLink.page.link"android:scheme="https" /></intent-filter>
In my secondery activity:
ActionCodeSettingsactionCodeSettiongs= ActionCodeSettings.newBuilder()
.setAndroidPackageName(getPackageName(), false, null)
.setHandleCodeInApp(true)
.setUrl("https://auth.example.com")
.build();
The generated URL for my email then like: "https://myDynamicLink.page.link/?link=https://myApp.firebaseapp.com...continueUrl%3Dhttps://auth.example.com..."
P.S. This all confusing because they in their Guids as an example put link "https://example.com", not a "http://example.page.link"
Post a Comment for "Firebase Android: Email Link Authentication. Intent-filter Not Working"