Git Product home page Git Product logo

Comments (6)

mderazon avatar mderazon commented on May 29, 2024

This module is express middleware / endpoint, take a look at the example

Need to do something like this

var express = require('express')
var deeplink = require('node-deeplink')

var app = express()

app.get('/deep', deeplink({ 
    fallback: 'https://na.nofer.com',
    android_package_name: 'com.na.nofer'
}))

// ... rest of the app

from node-deeplink.

SantoshSKhavekar avatar SantoshSKhavekar commented on May 29, 2024

Ya you are correct mderazon.I have used express endpoint and it is working fine .Just I wanted to know that is it possible to create http endpoint to redirect to Deeplink?

from node-deeplink.

mderazon avatar mderazon commented on May 29, 2024

The example above does just that, it creates http endpoint at /deep and it should redirect your android app to the deeplink

from node-deeplink.

SantoshSKhavekar avatar SantoshSKhavekar commented on May 29, 2024

Okay If I run this

var express = require('express')
var deeplink = require('node-deeplink')

var app = express()

app.get('/deep', deeplink({ 
    fallback: 'https://na.nofer.com',
    android_package_name: 'com.na.nofer'
}))

it is working. but in this code it is Express modue i.e Express server not Http module (Http server).Just I have to do by creating Http server and need to handle request for /deep.

from node-deeplink.

mderazon avatar mderazon commented on May 29, 2024

So you mean that you don't want to use Express ?
Right now this module supports express, but it shouldn't be too hard to fork this and adjust it to work without express to fit your needs

from node-deeplink.

SantoshSKhavekar avatar SantoshSKhavekar commented on May 29, 2024

Yes mderazon ,as my requirement I have to do with http module.So I have tried it with all possible ways to work using http module ,unfortunatelly it didnot work.Now there is no another way for me ,I must use express module only as you told.
Anyway Thank you So much for your answers,

from node-deeplink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.