when creating a firebase dynamic link manually i want the link to contain a variable as a parameter to deal with it when the link is clicked, i tried to do this:
StringBuilder link= new StringBuilder("https://qn937.app.goo.gl/?link=https://www.teblya.com/&apn=com.example.abdo.foodproject");
link.append("/?token="+itemٍ.getId()+"/");
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_TEXT, link.toString());
shareIntent.setType("text/plain");
startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.app_name)));
but the problem is that it opens the deep link in the browser instead of my app.
does anyone know any approach i can sent this item.getId()
parameter with the link? thanks in advance.