Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 2, 2012, 03:57 PM   #1
Monergy
macrumors newbie
 
Join Date: Jan 2011
Push Notifications Over Local Wifi

Hello

I'm trying to figure out if it is possible to send a push notification to a device when it connects to a certain wifi network? We have a unique situation that we are looking to create a "hot spot" area ... about 1500 sq ft. When a user with our app enters into this zone the app would connect to the network and send a notification to the phone.... more or less asking if they want to use the app..

We've used push notifications before but not really to "mark" and area and not sure if that is possible or not? If not any other solutions you can think of?
Monergy is offline   0 Reply With Quote
Old May 2, 2012, 04:07 PM   #2
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
you want to send an push notification to use an app, so how would you get the users device? because, they didn't get the app yet.. so how can you send them an Push notification? if that's your question. Not possible i'm afraid m
__________________

iPad Mini, iPad 4, iPad 2, iPhone 3G,4,5, iMac 24", Mac Mini Last gen, Macbook Pro Retina with Dell U2711
jnoxx is offline   0 Reply With Quote
Old May 2, 2012, 04:14 PM   #3
Monergy
Thread Starter
macrumors newbie
 
Join Date: Jan 2011
Quote:
Originally Posted by jnoxx View Post
you want to send an push notification to use an app, so how would you get the users device? because, they didn't get the app yet.. so how can you send them an Push notification? if that's your question. Not possible i'm afraid m
Thank you for the reply...

Sorry I should have clarified. This app will be used internally in a company.. so they will distribute it through their own chain of command... Not worried about the distribution at all just about creating this unique network that fires the notification...
Monergy is offline   0 Reply With Quote
Old May 2, 2012, 04:48 PM   #4
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Correct me if I'm wrong, I've never looked into the local notification APIs, but couldn't you set up local notifications that are triggered when the user crosses a geofence, or something like that?
__________________
Battery Status - On the Mac App Store
The only app that'll estimate when your wireless devices will need their batteries changed.
Including the ones paired with other Macs on your network.
ArtOfWarfare is offline   0 Reply With Quote
Old May 2, 2012, 05:09 PM   #5
Monergy
Thread Starter
macrumors newbie
 
Join Date: Jan 2011
Quote:
Originally Posted by ArtOfWarfare View Post
Correct me if I'm wrong, I've never looked into the local notification APIs, but couldn't you set up local notifications that are triggered when the user crosses a geofence, or something like that?
I thought of that but we need to identify a very small area inside of a multi story building Geo-fencing isn't this sensitive... we have an alternative that we can use that will give us the sensitivity to deploy something that is closer to a geofencing option... but it requires a few more steps... I thought that if we could just use a wifi network it might be the easiest option
Monergy is offline   0 Reply With Quote
Old May 2, 2012, 08:30 PM   #6
MattInOz
macrumors 68030
 
MattInOz's Avatar
 
Join Date: Jan 2006
Location: Sydney
So you control the network and the client list?

Does you're wifi network have a way to distinguish each client?
Like an individual user name password combo or maybe a lease name within the DHCP system. Set that backend system logging so that writes out each time a client connects. Then you could have a process that watches the log file for new entries and fire off the Push Notification in response to those client connections.
__________________
There is no such thing as "Collective Wisdom"
[ iPhone 5s, iPad Mini, 13" MacBookPro 2.7Ghz, 27"Al iMac i7, Black MacBook 13"]
MattInOz is offline   0 Reply With Quote
Old May 2, 2012, 09:33 PM   #7
Monergy
Thread Starter
macrumors newbie
 
Join Date: Jan 2011
Quote:
Originally Posted by MattInOz View Post
So you control the network and the client list?

Does you're wifi network have a way to distinguish each client?
Like an individual user name password combo or maybe a lease name within the DHCP system. Set that backend system logging so that writes out each time a client connects. Then you could have a process that watches the log file for new entries and fire off the Push Notification in response to those client connections.
Yes.. thats what I was wondering... I've never set up a network like this. Yes we will set up the network.. I would say the lease name is probably the best option.. Many thanks!.. I'll start in that direction and see if it works
Monergy is offline   0 Reply With Quote
Old May 3, 2012, 01:48 AM   #8
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
if i'm reading correctly, your setup isn't that hard.
You have to get a distribution profile, only have your people install it who need it.
In the application, you can setup "Zones", or "Boundaries", and when they enter that with their phone, they can activate a LOCAL notification, there is no need to do a push notification.

If you really want push, you can poll a webservice in the back (very very bad solution), and then when their place suffices, send a push notification, like i said, very bad, i prefer the one i mentioned above.
__________________

iPad Mini, iPad 4, iPad 2, iPhone 3G,4,5, iMac 24", Mac Mini Last gen, Macbook Pro Retina with Dell U2711
jnoxx is offline   0 Reply With Quote
Old May 3, 2012, 06:58 AM   #9
Monergy
Thread Starter
macrumors newbie
 
Join Date: Jan 2011
Quote:
Originally Posted by jnoxx View Post
if i'm reading correctly, your setup isn't that hard.
You have to get a distribution profile, only have your people install it who need it.
In the application, you can setup "Zones", or "Boundaries", and when they enter that with their phone, they can activate a LOCAL notification, there is no need to do a push notification.

If you really want push, you can poll a webservice in the back (very very bad solution), and then when their place suffices, send a push notification, like i said, very bad, i prefer the one i mentioned above.

Yes I don't really care if it's a push or local notification so long as when they enter the area they do get a notice or pop-up asking if they want to launch the app... The "zones" that your referring to.. are they GPS identified? or do you mean this would be fired with the wifi signal? I'm trying to identify a rather small area about 1500-2000k sq ft so when someone entered that area they would get the notification... I don't think gps will be sensitive enough to tell me when they enter that small of an area...
Monergy is offline   0 Reply With Quote
Old May 3, 2012, 07:15 AM   #10
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
You can set a zone with a center coordiate, then you can check the users coordinate in the background of the app, when your user is WITHIN those bounds (i think it should work, depends on the accuracy of your GPS signal there & what you setted in code).
In the code you can then send a local notification, if you have more precise questions, please ask
__________________

iPad Mini, iPad 4, iPad 2, iPhone 3G,4,5, iMac 24", Mac Mini Last gen, Macbook Pro Retina with Dell U2711
jnoxx is offline   0 Reply With Quote
Old May 3, 2012, 07:38 AM   #11
Monergy
Thread Starter
macrumors newbie
 
Join Date: Jan 2011
Quote:
Originally Posted by jnoxx View Post
You can set a zone with a center coordiate, then you can check the users coordinate in the background of the app, when your user is WITHIN those bounds (i think it should work, depends on the accuracy of your GPS signal there & what you setted in code).
In the code you can then send a local notification, if you have more precise questions, please ask
Ahh yes ok I understand... the problem is that this is a multi-story building.. so we need to know what floor they are on and only send that notification when they are on the correct floor... The GPS functions would also be a battery drain.. so we're trying to create an environment that will send the notification with out relying on the internal components of the phone
Monergy is offline   0 Reply With Quote
Old May 3, 2012, 06:26 PM   #12
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
Then i'm afraid i'm out of this conversation
i'm not 100% sure if it's possible anyways if you want to work with floors too..
You can setup a router, and if something connects on it, send it to a server which responds to it in code, and if it can see it's an iPhone, then try send push notification to it (i'm bad at that kind of stuff, so i'm just putting the idea out there that i would THINK that it should do).
__________________

iPad Mini, iPad 4, iPad 2, iPhone 3G,4,5, iMac 24", Mac Mini Last gen, Macbook Pro Retina with Dell U2711
jnoxx is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Is it possible to have both Local and Push notifications? MacMan988 iPhone/iPad Programming 1 Apr 28, 2014 11:38 AM
Local notifications with custom code vduser2014 iPhone/iPad Programming 0 Apr 22, 2014 01:39 PM
Receiving Push notifications when wifi is off KatApple iPod touch 1 Mar 21, 2013 05:39 AM
iPad Mini: iPad Mini Wifi - delayed push notifications enigma2k iPad 9 Jan 26, 2013 10:04 AM
Help with local notifications kalebhoot iPhone/iPad Programming 1 Jul 6, 2012 11:59 PM

Forum Jump

All times are GMT -5. The time now is 10:41 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC