Q:

get id from deeplink

<intent-filter>
      <action android:name="android.intent.action.VIEW"/>
      <category android:name="android.intent.category.BROWSABLE"/>
      <category android:name="android.intent.category.DEFAULT"/>
      <data
          android:host="www.example.com"
          android:pathPattern="/.*"
          android:scheme="https"/>
 </intent-filter>
0
protected void onCreate(@Nullable Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
   setContentView(R.layout.your_view);
   if (getIntent() != null && getIntent().getData() != null)
   {
      //parse your data here,
      //it's the deeplink you want "https://www.example.com/..."
   }
}
0

New to Communities?

Join the community