pushd icon indicating copy to clipboard operation
pushd copied to clipboard

How run both Dev and Prod for IOS

Open countrdd opened this issue 12 years ago • 6 comments

How do you setup the coffee.setting so that you can do either Prod or Dev on the same server for IOS and decide via parameter if you are going to register on prod or dev.

countrdd avatar Sep 17 '13 10:09 countrdd

You need to uncomment this part and configure the required certificates in the iOS developer portal:

#uncomment for dev env #gateway: 'gateway.sandbox.push.apple.com' #address: 'feedback.sandbox.push.apple.com'

# #Uncomment to use same host for prod and dev #exports['apns-dev'] = #enabled: yes #class: require('./lib/pushservices/apns').PushServiceAPNS ##Your dev certificats #cert: 'apns-cert.pem' #key: 'apns-key.pem' #cacheLength: 100 #gateway: 'gateway.sandbox.push.apple.com'

Do pay attention to the correct certificates. You need a different certificate for debug, dev. builds and production. If you point to the wrong certificates, no push will work.

melv1n avatar Sep 19 '13 22:09 melv1n

Thanks., I figured it out...

Have you thought adding just an api that you can send subscriber id and the payload?

I.E. Like the test functionality but you can define what is sent, and not be an event id?

From: melv1n <[email protected]mailto:[email protected]> Reply-To: rs/pushd <[email protected]mailto:[email protected]> Date: Thursday, September 19, 2013 6:20 PM To: rs/pushd <[email protected]mailto:[email protected]> Cc: Dusty Countryman <[email protected]mailto:[email protected]> Subject: Re: [pushd] How run both Dev and Prod for IOS (#43)

You need to uncomment this part and configure the required certificates in the iOS developer portal:

uncommant for dev env

#gateway: 'gateway.sandbox.push.apple.com' #address: 'feedback.sandbox.push.apple.com'

Uncomment to use same host for prod and dev

exports['apns-dev'] = enabled: yes class: require('./lib/pushservices/apns').PushServiceAPNS

Your dev certificats

cert: 'apns-cert.pem' key: 'apns-key.pem' cacheLength: 100 gateway: 'gateway.sandbox.push.apple.com'

Do pay attention to the correct certificates. You need a different certificate for debug, dev. builds and production. If you point to the wrong certificates, no push will work.

Reply to this email directly or view it on GitHubhttps://github.com/rs/pushd/issues/43#issuecomment-24777751.

countrdd avatar Sep 19 '13 22:09 countrdd

I think you mean by the api part, that you want to send a payload to a specific subscriber id. There is already a ticket for: #31. Just look at the attached pull request and you should have your answer.

melv1n avatar Sep 23 '13 14:09 melv1n

OK. Thanks...

Yeah, but you have to send an event id as well. I was looking for a customer push that was not necessarily an event.

From: melv1n <[email protected]mailto:[email protected]> Reply-To: rs/pushd <[email protected]mailto:[email protected]> Date: Monday, September 23, 2013 10:54 AM To: rs/pushd <[email protected]mailto:[email protected]> Cc: Dusty Countryman <[email protected]mailto:[email protected]> Subject: Re: [pushd] How run both Dev and Prod for IOS (#43)

I think you mean by the api part, that you want to send a payload to a specific subscriber id. There is already a ticket for: #31https://github.com/rs/pushd/issues/31 . Just look at the attached pull request and you should have your answer.

Reply to this email directly or view it on GitHubhttps://github.com/rs/pushd/issues/43#issuecomment-24925822.

countrdd avatar Sep 23 '13 14:09 countrdd

Read the ticket carefully. The creator tells why he'd chosen to do that by design. Pushd isn't designed to do just that.

melv1n avatar Sep 23 '13 15:09 melv1n

Thanks!

From: melv1n <[email protected]mailto:[email protected]> Reply-To: rs/pushd <[email protected]mailto:[email protected]> Date: Monday, September 23, 2013 11:26 AM To: rs/pushd <[email protected]mailto:[email protected]> Cc: Dusty Countryman <[email protected]mailto:[email protected]> Subject: Re: [pushd] How run both Dev and Prod for IOS (#43)

Read the ticket carefully. The creator tells why he'd chosen to do that by design. Pushd isn't designed to do just that.

Reply to this email directly or view it on GitHubhttps://github.com/rs/pushd/issues/43#issuecomment-24928368.

countrdd avatar Sep 23 '13 15:09 countrdd