I am trying to use Firebase Dynamic Links in my Android app. I'm confused on one of the parameters used to build deep links.
In the demo app, it calls an api to create a URI to be used as a deep link. As part of that it uses a "app code" as part of the authority method.
public Uri buildDeepLink(@NonNull Uri deepLink, int minVersion, boolean isAd) {
// Get the unique appcode for this app.
String appCode = getString(R.string.app_code);
// Get this app's package name.
String packageName = getApplicationContext().getPackageName();
// Build the link with all required parameters
Uri.Builder builder = new Uri.Builder()
.scheme("https")
.authority(appCode + ".app.goo.gl")
.path("/")
.appendQueryParameter("link", deepLink.toString())
.appendQueryParameter("apn", packageName);
// If the deep link is used in an advertisement, this value must be set to 1.
if (isAd) {
builder.appendQueryParameter("ad", "1");
}
// Minimum version is optional.
if (minVersion > 0) {
builder.appendQueryParameter("amv", Integer.toString(minVersion));
}
// Return the completed deep link.
return builder.build();
}
My questions is, what is the app code and where do I get it?