richsage / RMSPushNotificationsBundle

NOT MAINTAINED! ⛔️ Push notifications/messages for mobile devices. Supports iOS, Android (C2DM, GCM), Blackberry and Windows Mobile (toast only). A Symfony2 bundle.
MIT License
321 stars 152 forks source link

Error with pem path : Warning: stream_socket_client() #28

Closed babour closed 11 years ago

babour commented 11 years ago

Hi,

I tried to use the bundle but I get an error with the iOS pem file, I put an absolute path to the file but it doesn't seem to work, would it be possible to have a pem path example to put in the config file?

Thanks you,

Here is the error I get when I try to send a push : [{"message":"Warning: stream_socket_client(): Unable to set private key file `\/home\/user\/MyApplication\/src\/MyApplication\/WebServiceBundle\/Certificate\/ck.pem' in \/home\/user\/MyApplication\/vendor\/richsage\/rms-push-notifications-bundle\/RMS\/PushNotificationsBundle\/Service\/OS\/iOSNotification.php line 181","class":"ErrorException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/home\/user\/MyApplication\/vendor\/richsage\/rms-push-notifications-bundle\/RMS\/PushNotificationsBundle\/Service\/OS\/iOSNotification.php","line":181,"args":[]},{"namespace":"Symfony\Component\HttpKernel ...

richsage commented 11 years ago

Can you show the contents of your config file for the bundle?

babour commented 11 years ago

I don't use the android push yet, the token used for the test is for iOS.

rms_push_notifications: android: c2dm: username: "%android_c2dm_username%" password: "%android_c2dm_password%" source: "%android_c2dm_source%" gcm: api_key: "%android_gcm_api_key%" ios: sandbox: true pem: "/home/myuser/MyApplication/src/MyApplication/WebServiceBundle/Certificate/ck.pem" passphrase: mypassphrase

babour commented 11 years ago

I found the problem, the iOS developer had given my the wrong passphrase.

Sorry.

vinosiva commented 9 years ago

https://bitbucket.org/sardarnl/apns-client/pull-request/10/apple-sandbox-gateway-stopped-supporting/diff

richsage commented 9 years ago

@vinosiva sorry, are you reporting a new issue? Please open it separately if so, with further details.