camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Does apns-camel support a sandbox environment?
Date Sun, 15 Sep 2013 10:36:42 GMT
There ought to be a setFeedbackHost / port also you need to set.

On Sun, Sep 15, 2013 at 12:32 PM, troypayne <troypayne@gmail.com> wrote:
> by any chance do you know how to do this?
>
> Here's how I'm doing it, but I'm still not receiving any notifications
>
> val apnsServiceFactory = new ApnsServiceFactory(camelContext)
>  apnsServiceFactory.setCertificatePath("dev.p12")
> apnsServiceFactory.setCertificatePassword("*********")
>  apnsServiceFactory.setGatewayHost("gateway.sandbox.push.apple.com")
> apnsServiceFactory.setGatewayPort(2195)
>  val apnsService = apnsServiceFactory.getApnsService()
> val apnsComponent = camelContext.getComponent("apns",
> classOf[ApnsComponent])
>  apnsComponent.setApnsService(apnsService)
>
> I sort of did this taking a wild guess
>
>
> On Sun, Sep 15, 2013 at 6:25 AM, Claus Ibsen-2 [via Camel] <
> ml-node+s465427n5739403h92@n5.nabble.com> wrote:
>
>> Hi
>>
>> Yeah I think you need to configure the gateway and feedback host/port
>> to be the sandbox, on the
>> org.apache.camel.component.apns.factory.ApnsServiceFactory.
>>
>> They are default configured for production.
>>
>>
>> On Sat, Sep 14, 2013 at 7:19 PM, troypayne <[hidden email]<http://user/SendEmail.jtp?type=node&node=5739403&i=0>>
>> wrote:
>>
>> > Hello Riders,
>> >
>> > I've setup my scala project to send push notifications to a deviceToken
>> > (hex), using a sandbox cert. I'm not receiving any of the notifications
>> to
>> > my device and I'm not sure if the ApnsServiceFactory is configured for
>> > sandbox or production.
>> >
>> > Has anyone else come across this problem?
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/Does-apns-camel-support-a-sandbox-environment-tp5739376.html
>> > Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5739403&i=1>
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://camel.465427.n5.nabble.com/Does-apns-camel-support-a-sandbox-environment-tp5739376p5739403.html
>>  To unsubscribe from Does apns-camel support a sandbox environment?, click
>> here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5739376&code=dHJveXBheW5lQGdtYWlsLmNvbXw1NzM5Mzc2fC05MjM2MjYwOTI=>
>> .
>> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Does-apns-camel-support-a-sandbox-environment-tp5739376p5739406.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message