|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Help!!!! - Push Notifications activated by Location Services?
Hello, my name is Marc and I'm new to the forums, and I'm a first year student trying to make an iPhone/ipad app. It's a radio app the customer wants push notifications, where when you drive by like Walmart and if they have a special on soda it will push it to the app. I've tried Google to find out how to implement it but can't find anything so I don't know if it's even possible to do that. Thought I would ask here see if anyone can help.
Thanks in advance. Sent from my ADR6400L using Tapatalk 2 |
|
|
|
0
|
|
|
#2 | |
|
Quote:
There is a google places API that can find the location of things around the user, you could use that to find local stuff. After that, figuring out things like "Does XXXX have a special right now," I would leave up to you Visit the page here to learn about local notifications
__________________
2012 Mac Mini, 2.6 GHz, 16GB RAM, 1TB HDD ![]() 2.4Ghz 15" Macbook Pro ![]() 32 GB iPhone 4S : 16 GB iPod nano : 16 GB iPad 3 Nikon D60 : 18-55 mm VR : 55-200 mm VR |
||
|
|
0
|
|
|
#3 | |
|
Quote:
|
||
|
|
0
|
|
|
#4 |
|
No problem. The huge advantage to using local notifications is that they are created on the device, so no web server is necessary to send them out
__________________
2012 Mac Mini, 2.6 GHz, 16GB RAM, 1TB HDD ![]() 2.4Ghz 15" Macbook Pro ![]() 32 GB iPhone 4S : 16 GB iPod nano : 16 GB iPad 3 Nikon D60 : 18-55 mm VR : 55-200 mm VR |
|
|
|
0
|
|
|
#5 |
|
Your going to want to use the region tracking of core location and significant location change as to not impact the battery as much.
__________________
2.4 MacBook Aluminum 480GB SSD/750GB Optibay 8GB RAM CE | MacBook 2.4 SR 4GB, 320GB HD | PB G4 1.67 | 15 TiBook-DVI 800 iPhone 4S 16GB | iPhone 5 32GB
|
|
|
|
0
|
|
|
#6 |
|
This may not be sufficient in some cases. If I remember correctly, I read a blog post where a guy did a test run. The testers drove a few miles before their devices triggered the "significant change" event. Maybe Apple changed the definition of "significant location change" so that it would actually be useful in this context. I say a better idea would be to get the user's location at least once every few seconds. Don't turn the GPS receiver on.
__________________
Now available on the iPad App Store: Clean Cuisine Click here to load its App Store page. |
|
|
|
0
|
|
|
#7 | |
|
Quote:
|
||
|
|
0
|
|
|
#8 |
|
It's gonna be kinda hard to get the user's location without the GPS receiver turned on.
__________________
|
|
|
|
0
|
|
|
#9 |
|
|
0
|
|
|
#10 | |
|
Quote:
|
||
|
|
0
|
|
|
#11 |
|
Thanks for all the help I appreciation all the information.
|
|
|
|
0
|
|
|
#12 |
|
No, when a user agrees to get push notifications, you should handle that in the App Delegate. You are given a unique "token" for each user (a unique identifier string) that you would then store on your server somewhere, tying it to that specific user. When you wanted to send a push notification to that user, you provide that token as part of the bundle you send to apples push notification service, and it gets sent to that specific user.
__________________
2012 Mac Mini, 2.6 GHz, 16GB RAM, 1TB HDD ![]() 2.4Ghz 15" Macbook Pro ![]() 32 GB iPhone 4S : 16 GB iPod nano : 16 GB iPad 3 Nikon D60 : 18-55 mm VR : 55-200 mm VR |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 09:28 PM.








2012 Mac Mini, 2.6 GHz, 16GB RAM, 1TB HDD
I support the
Linear Mode
