iphone - Apple Push Notification not working on shared server -
i want send apn (apple push notification) php script. php script working fine , receive notification in iphone device when sending localhost when upload same script same .pem file shared server
returns error...
warning: stream_socket_client() [function.stream-socket-client]: unable connect ssl://gateway.push.apple.com:2195 (connection refused) in /mypath/sendpushnotification.php on line 28 failed connect: 111 connection refused
from source know send apn port 2195 must open not possible in shared server plan. tried using dedicated server , it's working , receive notification on device. tried hard find solution shared server didn't find solution.
my question: possible send apn without opening port 2195 shared server? if yes give guidance.
no, not possible send apn message without using 2195 port.
if want send push notification message shared server, try using third party tools http://urbanairship.com/.
Comments
Post a Comment