Logging Device Tokens

2012-08-06 Thread Dan Friedman
Question: How are you saving Device Tokens? I am working on adding Push Notifications to my app. I am able to create, send and receive the push notification (as a test) without issue. However, I can see that I am going to have to store the Device Tokens of all that use my app – thousands, pot

Re: Logging Device Tokens

2012-08-06 Thread Mike Kerner
Nope, you aren't crazy. There is a reason you have to do this - because you have to know who wants to receive push and who does not - and since different users may have different settings, you need to be able to customize those messages. Think about a weather app that uses push - the users are fr

Re: Logging Device Tokens

2012-08-06 Thread Mike Kerner
The other thing is that by "server" we're not talking about an expensive piece of gear. A cheapo PC will do it unless you are slamming tons of messages and volume through the pipe then you may want to consider either using a) Urban Airship or b) a little more infrastructure on your end. Urban Air

Re: Logging Device Tokens

2012-08-06 Thread Dan Friedman
Mike, THANK YOU for the information. I am wondering what you use to log the Tokens? Do you have the app fire a PHP script on your server that writes it down? What are you using to store the data? Flat files, like XML? Or a database? Thanks for the advise! -Dan > Nope, you aren't crazy.

Re: Logging Device Tokens

2012-08-06 Thread Magicgate Software - Skip Kimpel
I am also interested in how others are accomplishing this. Like Dan, I think I am over-thinking this whole procedure and it is probably more simple than I am making it out to be. SKIP On Mon, Aug 6, 2012 at 5:29 PM, Dan Friedman wrote: > Mike, > > THANK YOU for the information. I am wondering

Re: Logging Device Tokens

2012-08-07 Thread Mike Kerner
Databases are so stupid-easy that I am using a DB. I've tried both an angry hard-core DBMS and LC connected to . Both work great. If you are scared of/inexperienced with databases, then there are several LC database libraries that will make that problem go away. I think you guys are overthinkin

Re: Logging Device Tokens

2012-08-09 Thread Charles E Buchwald
Hi Mike, I guess I've just never dug deep enough into databases... so they aren't quite "stupid-easy" for me, yet... If I have readily available hosting on a LAMP server, and some basic network communication skills, can you (or anyone else here) suggest a specific LC database library to help me

Re: Logging Device Tokens

2012-08-09 Thread Mike Kerner
If you've ever used an array or set up a background so that you can store records in a stack, you have used a database. I'm sure you already know that. If you've ever used a spreadsheet, you have used a database. If you have ever created a delimited file to store data, you have used a database.

Re: Logging Device Tokens

2012-08-09 Thread John Craig
Hi, Dan. The following info will hopefully help, or at least give you some ideas. I wrote a 'draw something' style app at the beginning of the year and although it's never been released, it's delivered thousands of push notifications on the test service. The scripts run on an on-rev server.

Re: Logging Device Tokens

2012-08-09 Thread Peter Haworth
Hmmm, I'm afraid I have to disagree with almost all of that :-) Arrays, cards, csv files, spreadsheets - none of them are databases other than in the sense that they store data. They have no structure, no data integrity enforcement, no inter table relatioships, no ACID compliance, nor any of the o

Re: Logging Device Tokens

2012-08-09 Thread Mike Kerner
Peter, then you should probably stay away from any of the NoSQL engines, lol. Many of the features you mention are part of many modern DBMS's, but not all. I'm still nursing a DBMS that is well over 30 years old and it is most certainly not ACID compliant, and it does not provide for data integri

Re: Logging Device Tokens

2012-08-09 Thread Bob Sneidar
It was a fixed length file format. It had a header that ended in an eof, followed by lines that were in length the sum total of all the columns +1. The +1 was the deleted flag at the beginning of the record. There were no variable length columns. Everything was padded with spaces. Even numerica