Comments (6)
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.
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.
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.
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.
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.
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)
- No longer working on Android marshmallow devices HOT 4
- Struggling to get simple case working HOT 1
- Can not make it work HOT 4
- Better Android Intent url HOT 1
- Why sending url in params is require ? HOT 1
- not working with chrome & how the smart link work ? HOT 2
- Don't open playstore if app is not installed. HOT 1
- Please Verify My Code HOT 2
- Firefox on Android endless redirects HOT 1
- it doesn't work for me HOT 5
- Incorrect behaviour on ios devices HOT 1
- How to send fallback in queryparams HOT 2
- could not open page alert pops for couple of milliseconds before app store is opened on IOS HOT 2
- Critical security vulnerability in html-inline
- Endless redirection for android and IOS
- Getting an alert dialog saying download faild HOT 17
- Problem loading deeplink in Chrome on IOS HOT 2
- depplink fails on ios 9
- fallback link on ios 9 shows "cannot open page" alert before going to app store HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-deeplink.