2017-01-26 9 views
14

ユーザーは、パスワードを変更してください。彼らがリンクをクリックすると、私たちのウェブサイトにそれらを送ってもらいたいが、私たちのAndroidアプリは開かれる。電子メールで送信されたリンクからAndroidアプリが開かれる

リンクなど。 https://www.ourdomain.com/change-password/{random-string}です。

我々は我々のアプリで有効にディープリンクを持っていますが、彼らは次のように構成されています

  <intent-filter android:label="..."> 
      <action android:name="android.intent.action.VIEW" /> 

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

      <data 
       android:host="customhost" 
       android:pathPrefix="/" 
       android:scheme="https" /> 

      <data 
       android:host="www.ourdomain.com" 
       android:pathPrefix="/somethingelse" 
       android:scheme="https" /> 

      <data 
       android:host="www.ourdomain.com" 
       android:pathPrefix="/againsomethingelse" 
       android:scheme="https" /> 

      <data 
       android:host="someothercustomhost" 
       android:scheme="https" /> 

      <data 
       android:host="andagainacustomhost" 
       android:scheme="https" /> 
     </intent-filter> 

だからchange-password部分はその構成のいずれかに適合しない、理由は我々のアプリ何ができるかをそれにもかかわらず開かれますか?

EDIT

問題は最初data - タグであるかのように思えます。コメントすると、期待どおりに動作します(つまり、https://www.ourdomain.com/change-password/1234はアプリで処理されません)。 customhostとしては、あなたが1つの<intent-filter>アプリケーションでそれが正しく書かれている場合でも、混乱することができるので、異なる<intent-filter>コンポーネントに分離しようとするかもしれないwww.ourdomain.com ...

+0

投稿する前にリンクを変更したようです。それは少し混乱させる。しかし、これは正しいようです。このリンクはアプリで開いてはいけません。あなたはあなたの質問を再確認できますか? ?リンクを正しく投稿していますか? –

+0

はい; 'www.ourdomain.com'はドイツ語のURLであり、' customhost'はURLとはまったく異なるもので、 'change-password'は1:1の権利です。 – swalkner

+0

アプリがそのドメインをリッスンする原因となる他の理由や設定がありますか? – swalkner

答えて

2

から完全に別の単語である理由を私は知りません。

<intent-filter android:label="..."> 
    <action android:name="android.intent.action.VIEW" /> 

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

    <data android:host="www.ourdomain.com" 
     android:pathPrefix="/somethingelse" 
     android:scheme="https" /> 

    <data android:host="www.ourdomain.com" 
     android:pathPrefix="/againsomethingelse" 
     android:scheme="https" /> 
</intent-filter> 

<intent-filter android:label="..."> 
    <action android:name="android.intent.action.VIEW" /> 

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

    <data android:host="customhost" 
     android:pathPrefix="/" 
     android:scheme="https" /> 
</intent-filter> 

<intent-filter android:label="..."> 
    <action android:name="android.intent.action.VIEW" /> 

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

    <data android:host="someothercustomhost" 
     android:scheme="https" /> 
</intent-filter> 

<intent-filter android:label="..."> 
    <action android:name="android.intent.action.VIEW" /> 

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

    <data android:host="andagainacustomhost" 
     android:scheme="https" /> 
</intent-filter> 
関連する問題