Discussion Forums  >  Suggestions, Ideas, Wish List

Replies: 20    Views: 90

KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
02/09/13 11:19 AM (12 years ago)

Feature request: Push Notification log / history

I was thinking a log of the push notifications sent out would be a great addition. Each line entry could show a summary of the event: Devices sent to, message, sound, badge. Would help show clients what they've sent and would be a reminder as to what the badge number in iOS was set to last. Downloadable too (.txt or .csv) would be nice. -William
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/09/13 02:19 PM (12 years ago)
Hmm... That should be an easy add; all that data is in the database... they probably have moved on to more pressing issues... It can come back fairly easily, or one of us can cut a quick script for a data dump... Cheers! -- Smug
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 07:26 PM (12 years ago)
Yup @Smug is right the data is all in the database, regardless if it's gone in the control panel. I'll mod something up soon for self hosted users, I think this would be a awesome and easy (easy to say now) mod to do? Plus this would be awesome for clients! SO MUCH TO DO... just added to my list.. Cheers, David https://buzztouchmods.com
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 07:36 PM (12 years ago)
Just took a fast look... bt_pushNotifications.php lines 844 to 974 are the lines that we need and has everything already coded. The only thing is a function is needed for "history/log", that can call the same DB values that get called in that code. @Smug if you take a look at the code, I know you can do it in 5 minutes from what we chatted about last time ;) your php skills are way better then mine, regardless of how rusty you think you are! David https://buzztouchmods.com
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
02/09/13 07:37 PM (12 years ago)
Well, since I'm hosted on Buzztouch you self hosted guys are making me wanna get a BT_Server up and running! :-) ... I am happy to know this is a mod that is doable. -William
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 07:40 PM (12 years ago)
That's the best part of self hosting! If you ever get a interest, check out: https://www.buzztouchmods.com/forum/viewthread.php?forum_id=5&thread_id=8 Cheers, David https://buzztouchmods.com
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/09/13 07:58 PM (12 years ago)
You know, this should be pretty easy, but I'd feel better if I had push installed, so I'm going to go ahead and implement that (up to now, I haven't needed it) first. But you're right; that area is right where we want to be. In fact, I 'think' (relative to my installing push and testing) that all we're really going to have to do is: In the string that pulls the data from the database; "SELECT guid, and, all, that, garbage... FROM ... WHERE ... AND status != 'done'"; That '!=' means 'does not equal'. so, it's looking for anything without a status of 'done' for the queue, meaning, that anything WITH a status of 'done' has been sent. Therefore, copying that ENTIRE section, changing '!=' to '=' is part 1. Part 2 is gleening the rest and removing the stuff not needed; we're only displaying the data, so we don't really need any of that 'remove from queue' stuff and some other things... Part 3 is pasting it back in the document as a separate function and testing. Shouldn't be too much, but until I get push setup, I can't really test anything... But I will. Cheers! -- Smug
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
02/09/13 08:02 PM (12 years ago)
I'll dig in, thanks. I did get the BT_Server up and running locally on my MacBookPro just to play with and see how hard it would be to install (piece of cake), but I haven't installed on a proper remote server. I still consider myself in full-on learning mode with buzztouch, but I'm feeling very comfortable - I have one iOS app approved already and 2 more I'll submit for review next week. For now not having to worry about server issues is totally where I want to be... Even as tempting as the custom plugins are. Like you said: SO MUCH TO DO! -William
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
02/09/13 08:05 PM (12 years ago)
...And @Smug reminds me... Learn SQL. ;-) -W
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 08:07 PM (12 years ago)
@Kozmo totally getcha! @Smug knew you had this in the bag. PM me if you need help getting it set up, would love to have this released on BTM if possible! Still tinkering with your copy script... pm you soon on that. Cheers, David https://buzztouchmods.com
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/09/13 08:37 PM (12 years ago)
If you're feeling adventurous, you can try this. I'd appreciate a screen shot of how it looks. Take this code, and insert it in the bt_pushNotifications.php file, in the neighborhood of line 979 or so, just at the end of the "original" queue list, and before the registered device stuff starts. There is an image there for guidance. There are no 'insert' or 'delete' commands; at worst, it will look funky and not work. <sorry; file pulled for the time being...> I would suggest making a copy of your original prior to any modification. As always, not only do I absolve myself of responsibility, I blame my parents as well. Cheers! -- Smug It works ok on mine, but as I haven't implemented 'push' it merely tells me no pushes have been sent yet... I'm very interested in the results of those who have pushed...
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 09:04 PM (12 years ago)
@Smug standby please mate, I'm on it. Will throw a few screenies here and then clean it up / pretty it for release! STOKED!!! Cheers, David https://buzztouchmods.com
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 09:09 PM (12 years ago)
Made a few random pushes: https://buzztouchmods.com/push.png But it WORKS! I'll pretty it up right now for release, post here the final pics and results - you rock smug! David https://buzztouchmods.com
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 09:35 PM (12 years ago)
Done and Done! Had to kill a few PHP traps and had to clean up the data to something that could be read a little bit easier in the archive. Also fixed the table and div's so that it went under the queue. What do you think of the finished product? https://buzztouchmods.com/completed_push_mod.png Cheers, David https://buzztouchmods.com
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/09/13 09:52 PM (12 years ago)
I was aghast at the first; the second looks MUCH better. Nice Job!! Sorry I didn't have anything to test it with. Cheers! -- Smug
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 09:56 PM (12 years ago)
Yup just updated the screenshot with a fix of width and <br> codes! https://www.buzztouchmods.com/completed_push_mod.png Appreciate it! and no problem at all, were a great team together dude! Just wait until you see what I'm doing to the copy script ;) Super job to you too, and super idea Kozmo. Let's keep chatting in the PM about this mod Smug, we might not want to release it just yet for a few reasons. Cheers, David https://buzzztouchmods.com
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/09/13 10:04 PM (12 years ago)
I yanked the file link, just in case. It looks great on your server; I still need to put that theme on it. Let me know what you think it still needs... Cheers! -- Smug
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
02/10/13 05:35 AM (12 years ago)
Wow David, impressive stuff! I'll PM after this, but here's more ideas: - A "Show / Hide" switch would be good. I could see the list being very long over time. - Having the push data list in a scrolling frame may work too. - Download link to save offline, but if they're all there, a copy and paste does the job. It's great seeing how the all came together! Best, William
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/10/13 09:19 AM (12 years ago)
@William, Super cool indeed! Were thinking of a date based filter, it would ONLY show the latest 30 days, 2 weeks or 1 week worth of data via a drop down. How would that sound? Download link might be a little more difficult, let me check what kind of code is used for the usage map data download... maybe we can work something out between me and smug? PM whenever! Cheers, David https://buzzztouchmods.com
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/11/13 08:27 AM (12 years ago)
Keep me posted what you guys come up with here, looks like a useful script for sure.
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
02/11/13 09:25 AM (12 years ago)
Hi David, a date range filter would be great. That would work for me. -William
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.