ios - Apple Push Notification not working with ad-hoc build -
in development mode can send push notification devices, instead can't in production, setup is:
- .pem file combination of aps_production.cer of provisioning portal , private key of ad-hoc certificate
- apple server apn: 'gateway.push.apple.com' 2196 port
- i have rails server saves tokens devices , sends notification apple device tokens , previous .file opening connection
- ad-hoc build applications have (it's rubymotion): entitlements['aps-environment'] = 'production' entitlements['get-task-allow'] = false
- application when starts, sends correctly token application server
- i checked token different development mode
the problem rails application sends notifications , didn't receive errors, nothing arrived on devices.
i'm using testflight distribute ad-hoc version of application, don't known problem using testlight , apns.
what can be?
edit resolved: port wrong, 2195 instead of 2196...
apns have separate ssl certificate production , development.
you using development certificate production build.
Comments
Post a Comment