Discussion Forums  >  Self Hosted Control Panels

Replies: 14    Views: 162

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
03/18/13 01:26 PM (12 years ago)

Push notifications

Hey guys, I'm having trouble having my hoster open up the ports needed to use with Push Notification. Instead they suggested adding the host domain to the firewall, I gave them these: gateway.sandbox.push.apple.com gateway.push.apple.com Are these correct? Should this work this way? Thanks. Miguel
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
03/18/13 01:58 PM (12 years ago)
Who do you host with buddy?
 
aussiedra
Code is Art
Profile
Posts: 431
Reg: Dec 25, 2010
Brisbane, Austr...
8,260
like
03/18/13 02:04 PM (12 years ago)
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/18/13 02:09 PM (12 years ago)
I host on a shared server with Lunarpages. Thanks Miguel
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
03/18/13 03:58 PM (12 years ago)
You should try HostGator. All plans seem to work. They are very nice about opening ports. Jake
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/18/13 10:11 PM (12 years ago)
Hi MadRod, I'm still a big fan of x10hosting.com I have helped set up a few free x10 self-hosted users and Push is working great. ian
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/19/13 04:20 AM (12 years ago)
Hi Thanks guys. @Ian, I also liked x10hosting that you helped me setup, alhough via x10 I'm only been able to push to developing devices, not live. My problem is that i use lunarpages, for some clients emails, website, my website. So its just not about the BT self hosting. Changing hoster must to be my last option. I must try every option with lunarpages, before changing. Although i could use the free X10 just for the BT server, I dont mind not using my own domain. Have you been successful pushing to live devices via the free x10 hosting? Thanks. Miguel
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/19/13 04:24 AM (12 years ago)
Does the server have to be in a HTTPS? Thank you.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/19/13 08:36 AM (12 years ago)
Hi MadRod, Hi have been sendi Live Push to both free and paid accounts on x10.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/27/13 07:43 AM (12 years ago)
Hey Ian, I can only send notifications to design devices via x10. What could I be doing wrong? Thanks.
 
aussiedra
Code is Art
Profile
Posts: 431
Reg: Dec 25, 2010
Brisbane, Austr...
8,260
like
03/27/13 08:04 AM (12 years ago)
did your host add the apple sites to the firewall ?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/27/13 08:13 AM (12 years ago)
From what I understood from Ian, its already done by default, using the x10 hosting. Thanks.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/27/13 11:00 AM (12 years ago)
Hi Madrod, Whenever I have a problem with Push it always comes back to those certificates. Even if you think you have all the steps right in the Push certificate process you may just want to do it over again. I don't know how many times I've seen it happen where doing the same steps again seems to work. let me know ian
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/27/13 04:11 PM (12 years ago)
Thanks Ian, the only difference between the design certificate and the live one, is that on apple developer, inthe provisioning setion you add a new profile to the distribution, using the App Store as the distribution method, right? Thanks
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/03/13 08:04 AM (12 years ago)
Hi Miguel, the way I look at it is like this (I'm writing it down as I have problems getting this right too). For apps with push, you need to have a specific Apple app ID. For this app ID you create a development certificate (from a CSR) and then a Distribution certificate (can be from the same CSR). Then, you then create a Development profile and a Distribution profile, which are associated with the Development certificate and the Distribution certificate respectively and used to code sign the app. The Dev profile is to code sign the app in your xcode development environment, I'm pretty sure you have successfully done this already. The important bit is the Distribution profile, which can be set to AdHoc or full distribution. AdHoc is to test you app 'as live'; ie if it works with AdHoc, you *know* it will work when you switch it to full Distribution and put it in the app store. Allegedly... Apologies if you know all this already; I'm trying to confirm my understanding too!
 

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.