hooks/lib/android/manifestWriter.js
function createIntentFilter(host, scheme, pathName) {
  var intentFilter = {
    '$': {
      'android:autoVerify': 'true'
    },
    'action': [{
      '$': {
        'android:name': 'android.intent.action.VIEW'
      }
    }],
    'category': [{
      '$': {
        'android:name': 'android.intent.category.DEFAULT'
      }
    }, {
      '$': {
        'android:name': 'android.intent.category.BROWSABLE'
      }
    }],
    'data': [{
      '$': {
        'android:host': host,
        'android:scheme': scheme
      }
    }]
  };

  injectPathComponentIntoIntentFilter(intentFilter, pathName);

  return intentFilter;
}
function createIntentFilter(host, scheme, pathName) {
  var intentFilter = {
    '$': {
      'android:autoVerify': 'true'
    },
    'action': [{
      '$': {
        'android:name': 'android.intent.action.VIEW'
      }
    }],
    'category': [{
      '$': {
        'android:name': 'android.intent.category.DEFAULT'
      }
    }, {
      '$': {
        'android:name': 'android.intent.category.BROWSABLE'
      }
    }],
    'data': [{
      '$': {
        'android:host': host,
        'android:scheme': scheme
      }
    }]
  };

  injectPathComponentIntoIntentFilter(intentFilter, pathName);

  return intentFilter;
}
function createIntentFilter ( host , scheme , pathName ) { var intentFilter = { '$' : { 'android:autoVerify' : 'true' } , 'action' : [ { '$' : { 'android:name' : 'android.intent.action.VIEW' } } ] , 'category' : [ { '$' : { 'android:name' : 'android.intent.category.DEFAULT' } } , { '$' : { 'android:name' : 'android.intent.category.BROWSABLE' } } ] , 'data' : [ { '$' : { 'android:host' : host , 'android:scheme' : scheme } } ] } ; injectPathComponentIntoIntentFilter ( intentFilter , pathName ) ; return intentFilter ; }
Create JSON object that represent intent-filter for universal link.

@param {String} host - host name
@param {String} scheme - host scheme
@param {String} pathName - host path
@return {Object} intent-filter as a JSON object
Create JSON object that represent intent - filter for universal link .