Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add captive portal #26

Open
saoron opened this issue Dec 6, 2016 · 1 comment
Open

Add captive portal #26

saoron opened this issue Dec 6, 2016 · 1 comment

Comments

@saoron
Copy link
Member

saoron commented Dec 6, 2016

The portal will open the app if installed or point to the store to get the app,
The portal could trigger background script for update/upload or any idle action.

@Erim32
Copy link
Contributor

Erim32 commented May 30, 2017

Hello, for the first part you can edit the hostapd system and add a rule in IP Table:
Something like that:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 127.0.0.1:80
(not sure, check https://raspberrypi.stackexchange.com/questions/58026/open-splash-page-after-connecting-to-wifi-hotspot)
That require to integrate apache.
In the index.js page, run a JavaScript Script who gonna call the URI of the app.
Note: that also require to add URI in apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants