Discussion Forums  >  Crashes, Memory Warnings

Replies: 36    Views: 241

Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
02/07/13 06:14 PM (11 years ago)

Anyone had any luck using Push in 2.1.8?

Hey guys. Anyone been successful in using push notifications in 2.1.8 Self Hosted? I still get this error: http://appsbykristen.com.au/screenshot51.jpg
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
02/07/13 07:22 PM (11 years ago)
I haven't gotten it to work yet. Different error for iOS, and my Android phone appears to register fine, but never shows up in registered devices. Just odd bugs. I know David is working on this.
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/07/13 08:01 PM (11 years ago)
Sure, I just wanted to see if there are any others also experiencing issues with Push or maybe I have done something wrong... Cheers
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/07/13 09:05 PM (11 years ago)
Not yet but will attempt it now! Will post results.. David https://buzztouchmods.com
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/08/13 12:22 AM (11 years ago)
Found and fixed a few things that should not have happened. Sigh. The latest download has two updated files. One related to push, one another minor snafu found by MrDavid. You only need to upload two files. 1) Push: The /BT-server/bt_v15/bt_app/bt_pushNotifications_AJAX.php file included in the download was not the correct file for this project. And, get this, the trouble on our crazy complicated backend running a version of the same project (buzztouch.com panels) was NOT using the correct file either. Ha. 2) /BT-server/account/index.php file. This had an issue where it wasn't showing the right version number under the app icons. These are the icons on a users home screen. They can now control this version number in the Publish screen. I have tested PUSH on 5 different machines so I know it works :-)
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/08/13 12:28 AM (11 years ago)
Sweet! Thanks David. Now to update a bunch of servers... falling asleep! David https://buzztouchmods.com
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/08/13 12:29 AM (11 years ago)
Thanks David, glad to know you are human after all ;) Got it working on BT.com but getting a different error on self hosted now...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/08/13 01:01 AM (11 years ago)
The human in me didn't make the error. LOL. Totally my fault! Damn .PHP, almost as bad as iOS. The thing about iOS is that because we all assume that "all the devices are the same" that they will behave the same, in a literal sense. The fact is, there is a huge difference between my phone and your phone - even if the model number is the same and the OS is the same. These are computers and just like my MacBook is not the same as your MacBook, my phone, apps, data, habits, etc. create a different system if you look at it literally. iOS is for sure the best at minimizing these differences but differences do exist. .PHP is sorta the same way. A gazillion servers running the "same" version of .PHP but behave totally different. It's almost comical. Aside from the "S" typo you found in a variable name (great screenshot earlier) there wasn't anything obviously different between the "bad" PUSH file I included in the download and the "good" PUSH file. A few minor differences to account for some strange server setups but mostly the same stuff. Works here. Doesn't work there. Go figure. The single most challenging part of what I do each day is trying to write code and make software that works on OTHER peoples hardware. Keeps it exciting for sure. The internet allowed folks like me to run one app, on one machine (or a series of machines we support) and deliver the same "experience" to end users. This was a giant change from shipping CD's, floppy's and all sorts of other packages that contained the software back in the day. But, as screwy as those days where, and as promising as SaS offerings have become, it's no simpler than the good ole days to get it right when you're doing it at scale. Still tough. Still fun when it works. Still super hard when it doesn't. I'm spoiled, more so than you for sure. You compliment our efforts constantly and you can't imagine how much we appreciate that. But, we benefit far more than you when you discover things that would otherwise take us days, weeks, years? to find. Let alone fix. This is a perfect example of this benefit that we get, not you. Yeah, you get the fix, but we get long term lasting value from this fix that will surely affect loads and loads of folks. You mentioned in an online meeting that Push didn't seem right after some updates. I was surprised because everything "seemed" OK. As it turned out, your intuition was right and we were able to find, fix and update the trouble even though it didn't appear that any trouble existed (from our perspective). No obvious errors on our equipment. It took you finding something that our .PHP installs "ignored" to get us pointed in a totally different direction. The right direction that lead to the fix. Blah, blah, blah. Just writing a bit about how stoked I am to get to use this amazing internet thing. I can't imagine doing anything like this WITHOUT the internet. Nuts to think about. When I start blogging again someday (yeah right) I'll title the first post: "Sorry sir, I'm shipping 10,000 new copies out with the fix next week, you'll have to wait until then to take advantage of that feature" Finding something else that needs attention....
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/08/13 01:15 AM (11 years ago)
lol, then you will enjoy my latest screenshot for you in the "post"
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/08/13 01:27 AM (11 years ago)
Yup. For anyone following along ...It's looking like some hosting accounts may not work as expected with the Push implementation as it's coded now. I'm suspect of line 70 ish of the bt_pushNotifications_AJAX.php script. It's: $fp = @stream_socket_client($apnURL, $errCode, $errString, 2, STREAM_CLIENT_CONNECT, $stream_context); On @Kaybee's box it's failing on that line. I'm interested in learning if... a) removing the @ character in front of "stream_socket_client" and... b) Changing the 2 to a 30 has any effect on this particular machine.
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/08/13 03:07 AM (11 years ago)
Same error unfortunately... ;(
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
02/08/13 04:29 AM (11 years ago)
Thanks David. I'll check it out when I fire up the 'ole MacBook later and recompile. Whoops, as I'm writing this, the push that I sent using this iPhone DID work!!!!! WooHoo great job David. What do you mean YOUR'E spoiled??!!??!! I think it's safe to say that WE are the ones who are spoiled. I'm not sure that there is anywhere else that we Buzztouch users could do what we do and recieve the level of service that we get from you David and the Buzztouch team and community. So what if there is a bug every now and then. How many times do you think that Tesla was shocked, or Edison burn up a power station before they got it right. We don't even think of that when we flip a light switch or use a microwave do we? Mr. Book, don't stress too much over the small stuff because you know in the end it will work out. This is an awesome product run by awesome people. Nothing but praise here. Thanks again David. Now get some sleep Dave
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/08/13 05:26 AM (11 years ago)
Well said @Calypso Kid David we are really appreciative of your tireless efforts at weird hours of the night to fix our problems !! I think that is what makes BT so awesome and suitable and accessible to people like me that still can't code one line but has 5 active iOS apps working just fine. Please understand although we are highlighting minor issues, we are patient and by no means want to put you under undue pressure :) The service levels are phenomenal for such a small man team which until recently was only 1 man. "iRome" wasn't built in a day...
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/08/13 07:54 AM (11 years ago)
Agreed. Get some rest so you can look at it again with fresh eyes. Sometimes you gotta step away to think. I'm gonna try to update to 2.1.8 today, but wasn;t looking to start using the PUSH functionality for a bit anyways. I'm more excited about the Live/Design mode features and getting that code in my apps. Thanks x 1,000,000 you know we appreciate all these sleep deprivation and efforts.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/08/13 08:09 AM (11 years ago)
Hi All, Here is my error: Oops, a PHP error was trapped. File: /home/content/39/8352539/html/JAppBuilder/bt_v15/bt_app/bt_pushNotifications_AJAX.php Line: 71 Message: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://feedback.sandbox.push.apple.com:2196 (Connection refused) Could it be that the port 2195 and 2196 are blocked? Jake
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/08/13 08:27 AM (11 years ago)
For fun.. I have a question for a concept I have that might be a idea? What if you have every multiple instance of that code, that one line you talked about before, where you asked him (kaybee/kristen) to change the 2 to something else. Why not have all of those lines, and have the code shuffle through each one until it works - this way it sort of works for all? So if you fix it for kaybee, it won't break for jake, and so on. Have no idea if I'm making sense, or if that's even a thing lol. David https://buzztouchmods.com
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/08/13 10:25 PM (11 years ago)
Some good finds on the push front. And, some other good finds on some other nicky-nack syntax errors causing some gotchas (like the screen picker and such). Some updated files coming later this evening. The push thing is FOR SURE related to some .PHP installs not being able to establish a stream-connection using some very very standard method calls. I'm still unsure as to why this would be. Lots of discussion about the ports and such but think of it this way, your asking your machine to call OUT, not in. This means unless your host has blocked ports OUTBOUND (which seems weird) then this is not the issue. It's also not your certs, they are fine. It's also not the code (as it stands, it does work in many cases). It's an issue 100% for sure related to the stream-connection method calls on some php installs. I'll find it.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 01:37 PM (11 years ago)
Yup same here, just tried for the first time and received: Error sending Could not process Feedback from APNS (1) This is normally caused by an invalid APNS Certificate (tried your Development Certificate aka:"Sandbox" certificate) Oops, a PHP error was trapped. File: /home/btmserver/public_html/hosted/shared/bt_v15/bt_app/bt_pushNotifications_AJAX.php Line: 71 Message: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://feedback.sandbox.push.apple.com:2196 (Connection refused) Wish I could provide more data. Thanks for all the help. David https://buzztouchmods.com
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/09/13 01:39 PM (11 years ago)
@MrDavid Your Outgoing Port 2196 is blocked. Unfortunately push will not be possible. Jake
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 01:51 PM (11 years ago)
Hmmm @Jake I think (if I understand correctly?) is that David said that it most likely is not ports. "Lots of discussion about the ports and such but think of it this way, your asking your machine to call OUT, not in. This means unless your host has blocked ports OUTBOUND (which seems weird) then this is not the issue." - David I'm contacting my host (hostgator) to see if this is the case! Cheers, David https://buzztouchmods.com
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/09/13 02:22 PM (11 years ago)
@Mr. David Are you using GoDaddy? Jake
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/09/13 05:08 PM (11 years ago)
@Mr. David, This is a weird error. I am getting the same error, I called my host and they said it was not the ports. It is probably a .PHP problem. Jake
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 07:42 PM (11 years ago)
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/09/13 10:08 PM (11 years ago)
Thanks David, working well now.
 
BuzzMkt
Apple Fan
Profile
Posts: 131
Reg: Apr 10, 2011
Italy
2,710
like
04/04/13 05:12 AM (11 years ago)
Hello guys, i added my app on tested iphone for trying the push notification but i have the following error: Could not process Feedback from APNS (1) This is normally caused by an invalid APNS Certificate (tried your Production Certificate) What does ii means...which operation i need to do? Thks in advance
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
04/04/13 07:05 AM (11 years ago)
I think this means you tried to send to distribution, you should try to send to Development "Design" mode. Jake
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/27/13 03:34 PM (11 years ago)
I've been trying to set up APN this weekend, in between feeling under the weather :) I signed up for hosting at hostgator, knowing that my godaddy shared hosting wouldn't work. I followed Niraj's how-to. So far, I'm just trying to get development mode working. But, I keep getting this error: Error sending Could not process Feedback from APNS (1) This is sometimes caused by an invalid APNS Certificate (tried your Development Certificate aka:"Sandbox" certificate).It could also be that your web host has blocked PORTS 2195 and 2196, both are required by the Apple Push Notification Service
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
04/27/13 03:53 PM (11 years ago)
@Chris: Have you called Hostgator and asked them to open the ports? 1. TCP port 5223 (used by devices to communicate to the APNs servers) 2. TCP port 2195 (used to send notifications to the APNs) 3. TCP port 2196 (used by the APNs feedback service) (Ports from MadRod) Jake
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/27/13 04:15 PM (11 years ago)
I haven't - I assumed they were automatically open for hostgator accounts. Is there a way to check my account to see if the ports are open?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
04/27/13 04:16 PM (11 years ago)
I would call them. They were not automatically open for me...but during the phone call, they opened the ports. They usually have very low wait times and are very nice people. Jake
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/27/13 05:01 PM (11 years ago)
okay - i just talked to them over chat and they opened the ports up for outbound only - hopefully that's all I need. (They said they couldn't open them up for inbound). Probably took a lot longer than calling would have, but I didn't have the energy to talk on the phone. lol. :)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/27/13 05:02 PM (11 years ago)
...and it worked - yay! Thanks Jake for your help.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
04/27/13 06:31 PM (11 years ago)
@Chris1: Yes, I only have outbound open and it works fine for me. How is your HTML Plugin coming along? Jake
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/27/13 06:33 PM (11 years ago)
oh yes - i owe you an email, don't i? :)
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
04/27/13 06:34 PM (11 years ago)
That would be great. Thanks, Jake
 
SilvorMike
Aspiring developer
Profile
Posts: 18
Reg: Apr 18, 2013
England
680
like
05/21/13 02:25 AM (10 years ago)
I'm having the exactly same problem currently and I don't know why. I have tried re-uploading my Production cert and it just won't work...have no clue why. Lost.
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
06/23/13 10:18 AM (10 years ago)
Interestingly, I'm having the same issue (still).
 

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.