Community discussions

 
User avatar
KatsuroKurosaki
just joined
Topic Author
Posts: 19
Joined: Tue Jul 24, 2012 10:53 am

Android, HostSpot&Walled garden: no push notifications

Mon Jan 27, 2014 10:06 am

Good day everyone!

Long time I don't post for help in forums; I would like to know if someone faced this problem or have any clue about what is wrong.
We have RB433 and RB450G boards, tried with RouterOS 5.22, 5.26 and 6.7 right now. One network adapter is connected to the Internet, and all the others are in bridge mode, running a HotSpot in the bridge. Well, one of our customers asked us to bypass the remote requests that their Android application does, so everyone can only use the app, without need to log-in the hotspot.
in IP > HotSpot > Walled Garden IP List, added the domain in Dst. Host and Action accept. The app connects and works perfectly, even if the user did not log-in the hotspot.

Well, the problem is: All logged-in users, when the admin sends a Push notification to everyone, they receive it, but the users that did not log-in, they don't receive it until they switch to mobile data or log-in the hotspot network. We used a sniffer, to see all the IP adresses or domains that our customer's app use, to see if we find more, but no luck.
Did we miss something, it's a bug in ROS or do we need to change something else in HostSpot config to allow push notifications?

Best regards!
Katsuro Kurosaki
If you ask for a banana, would you expect someone to hand you an orange? Or a fork? No you wouldn't, because you asked for a banana, and you expect them to understand that a banana is not an orange or a fork. It's the same principle.
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1681
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: Android, HostSpot&Walled garden: no push notifications

Mon Jan 27, 2014 10:38 am

I think the problem is that the mobiles are not loged in to the hotspot before the push notification and the hotspot don't know that them has arrived to the office ; )


Imagine you arrive to the MUM and they are giving a free beer to everyone in the list of "arrived to MUM today". If noone knows that you arrived, you wont get your free beer. It's same situation, your hotspot don't know that your mobiles are "in the office" because this mobiles don't tried to get internet through the hotspot.

In a 3G network the mobile is always sending ACK packets and always are "validated" in the "hotspot" of the 3G company.
Martín
martinruiz at ibersystems.es
Experto en redes WiFi y enlaces WiFi.

Facebook: @Ibersystems
Twitter: @Ibersystems

Certified in Traffic Shaping, Wireless, Internetworking, Routing and User Management.
MTCTCE - MTCWE - MTCINE - MTCUME - MTCRE
 
User avatar
KatsuroKurosaki
just joined
Topic Author
Posts: 19
Joined: Tue Jul 24, 2012 10:53 am

Re: Android, HostSpot&Walled garden: no push notifications

Mon Jan 27, 2014 1:56 pm

Hello Ibersystems, thanks for your reply.

I searched more information about push notifications, and if I'm not wrong, seems that the app establishes a persistent connection to a server, and waits to receive the push data. Do you know if ROS's hotspot allow persistent connections no unauth users, but having allowed the domain to connect in Walled Garden IP List?

Also, we found a rule (IP > Firewall), that is being added automatically when you set up the hotspot, to block 8080 port, to unauth users. Our customer's app does the request on a 8080 port; and we can't change this port (it's grayed in winbox), as well we can't ask our customer to change the port in their app. Do you know if there is a way to allow connections to 8080 port?

Thanks in advance~
Katsuro Kurosaki
If you ask for a banana, would you expect someone to hand you an orange? Or a fork? No you wouldn't, because you asked for a banana, and you expect them to understand that a banana is not an orange or a fork. It's the same principle.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Android, HostSpot&Walled garden: no push notifications

Mon Jan 27, 2014 2:08 pm

I don't know if this will work for you, but it looks like I can disable that redirect of port 8080.
/ip firewall nat
print dynamic
I found this rule:
15 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=8080
I disabled it by using "disable 15" and it now shows this:
15 X chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=8080
However, I don't know what this does to the effectiveness of the hotspot to block proxy settings.
 
User avatar
KatsuroKurosaki
just joined
Topic Author
Posts: 19
Joined: Tue Jul 24, 2012 10:53 am

Re: Android, HostSpot&Walled garden: no push notifications

Wed Jan 29, 2014 9:13 am

Good morning SurferTim,

I tried your solution, hotspot grayed the value with dst-port 8080, and still we had no luck.

Anyways, we rever-se engineered the app and found that the customer is not using push notifications, he has a timer, that fires every 5 seconds and does an HTTP GET request to the server. We still did not found why the request doesn't fullfill when there are all the rules in the Walled Garden, but: Using Wireshark, we found all the three URL that requests every 5 seconds, the IP are in the walled garden, and using the mobile web browser and another device (a laptop with Firefox) the web browsers are able to complete the request and get the JSON answer, so we guessed that is something related to our customer's app (We will contact him).
Thank you very much to everyone for their replies and time :)

Greetings~!
Katsuro Kurosaki
If you ask for a banana, would you expect someone to hand you an orange? Or a fork? No you wouldn't, because you asked for a banana, and you expect them to understand that a banana is not an orange or a fork. It's the same principle.
 
kraker
Frequent Visitor
Frequent Visitor
Posts: 88
Joined: Thu Aug 02, 2012 9:34 am

Re: Android, HostSpot&Walled garden: no push notifications

Fri Oct 31, 2014 1:57 pm

Hi Katsuro

Can you explain how you cen send notification message to hotspot client users?I found some programs but really I need a real solution.

If you know any programs please share with us.

thanks..

Who is online

Users browsing this forum: Bing [Bot] and 81 guests