2016-03-29 9 views
2

私はアプリで働いています。ディープリンクを作成する必要があります。ユーザーは特定のアイテムを共有でき、ユーザーはクリックリンクから直接ページを開くことができます。私はenter link description hereアプリでディープリンクを作成する方法は?

<intent-filter > 
      <!-- android:autoVerify="true"--> 

     <action android:name="android.intent.action.VIEW" /> 
     <category android:name="android.intent.category.DEFAULT" /> 
     <category android:name="android.intent.category.BROWSABLE" /> 

      <data android:scheme="https" 
       android:host="www.jobzminer.com" 
       android:pathPrefix="/appplay" /> 

      <data android:scheme="jobzminer" 
       android:host="appplay" /> 
    </intent-filter> 

に従うが、私はその後、ブラウザにリンクを入れたときにその動作していません。

+0

ブラウザでクリックしているリンクは何ですか? –

+0

@Ericにお返事いただきありがとうございます。私はこのようなURLを持っています:jobzminer:// appplay – Suman

+1

あなたのURLを 'https:// www.jobzminer.com/appplay'に変更すれば動作します。 –

答えて

2

を参照してください。また、ブラウザをデフォルトのアプリとしてクリアしてください。

パラメータを渡すには、クエリパラメータを使用できます。あなたの活動に続いてhttps://www.jobzminer.com/appplay?param1=hello&param2=world

:このようなあなたのURLを変更。これを行う:

Intent intent = getIntent(); 
Uri data = intent.getData(); 
String param1 = data.getQueryParameter("param1"); 
String param2 = data.getQueryParameter("param2"); 

あなたはまた、私の答えhereを見ることができます。

関連する問題