-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added PAGE_LINK_PATHPREFIX preference for specifying Android pathPrefix #82
Conversation
@mcfarljw hm, my expectation for variable |
I made a typo in my example above. It should have been I think you can actually can use the same
If we don't specify the The reason Apple makes this a bit easier is because you specify the paths in their verification file so don't need to do anything in the actual app code. Here is our Apple file for reference: https://app.skritter.com/.well-known/apple-app-site-association |
@mcfarljw thanks for the clarification. I was thinking a little about all this information and suggest above:
What do you think? |
I think renaming things from Something else of note (somewhat related to these custom domain changes) when using custom domains is in my <config-file target="*-Info.plist" parent="FirebaseDynamicLinksCustomDomains">
<array>
<string>https://app.skritter.com/link</string>
</array>
</config-file> This might be also mentioned in #28 and there could be two ways of handling it. The first would be just mentioning that this needs to be added to the your projects <config-file target="*-Info.plist" parent="FirebaseDynamicLinksCustomDomains">
<array>
<string>https://$APP_DOMAIN_NAME$APP_DOMAIN_PATH</string>
</array>
</config-file> It's mentioned in the docs here https://firebase.google.com/docs/dynamic-links/custom-domains#set_up_a_custom_domain_in_the. I'm guessing adding this to the plugin would also work just fine with the page link stuff so might be best to just include in the plugin for simplicity? |
@mcfarljw I’d like to include the snippet with FirebaseDynamicLinksCustomDomains. It’s always better to make things just work, not everybody reads README.
|
Decided to push a new version without this PR, because renaming variables could introduce breaking changes. |
Fair enough, I won't be able to test the page link stuff with |
I was able to test this out and using a plain
|
@mcfarljw looks good for me. I've noticed one more thing: preference
I guess we should add |
I appended the cordova.plugins.firebase.dynamiclinks.createDynamicLink({
link: "https://google.com"
}).then(function(url) {
console.log("Dynamic link was created:", url);
}); It would log |
@mcfarljw great! Have you checked if we really need a protocol for DOMAIN_URI_PREFIX? Eg
|
Removing the protocol appears to break things, at least on Android. The returned link is formatted like https://developer.apple.com/documentation/security/preventing_insecure_network_connections I think it might be best to just make the plugin only officially support HTTPS as the |
@mcfarljw thanks for your work! Changes released in v4.8.0 |
We have multiple apps using the same domain and need to be able to specify the
pathPrefix
so that the correct app is opened. This is shown in the Android docs here: https://developer.android.com/training/app-links/deep-linkingVariables when adding the plugin look something like this:
The default for the
PAGE_LINK_PATHPREFIX
preference is set to""
which meansandroid:pathPrefix="/"
should still be good for those not using it.This isn't an issue for iOS as app paths are set in the
apple-app-site-association
file which is hosted on the server.