APN Sandbox and Production usage in parallel

109 views
Skip to first unread message

Uscher

unread,
Aug 7, 2014, 11:38:16 AM8/7/14
to uni...@googlegroups.com
Hi Monnand

I first used push service provider sandbox, which worked fine. Then I added push service provider production which did also work fine. But from then on APN development did not work anymore. I recreated and addes both certificates and keys, but did not help.

Following output is for production which is OK:
[Subscribe][Info] 2014/08/07 17:05:10 From=127.0.0.1:56686 Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991 DeliveryPoint=apns:6d6209d9e085c98bc20b9821366e2dc3dc49ba17 Success!
[Push][Info] 2014/08/07 17:05:42 RequestId=53e395c6-67rzKBJZ49q1U4VnnoV-EQ== From=127.0.0.1:47529 Service=ajoy NrSubscribers=1 Subscribers="[41786377584]"
[Push][Info] 2014/08/07 17:05:42 RequestID=53e395c6-67rzKBJZ49q1U4VnnoV-EQ== Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991 DeliveryPoint=apns:6d6209d9e085c98bc20b9821366e2dc3dc49ba17 MsgId=apns:apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991-125 Success!
[Push][Info] 2014/08/07 17:05:42 RequestID=53e395c6-67rzKBJZ49q1U4VnnoV-EQ== Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7 DeliveryPoint=apns:98e33a0cad66bc695e9ba781efa48a4252eb70ba MsgId=apns:apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7-126 Success!

And this output is for development which fails:
[Subscribe][Info] 2014/08/07 16:59:47 From=127.0.0.1:56077 Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991 DeliveryPoint=apns:a9bc4a71a2eb6ba38977d98dace748bb4671de4e Success!
[Push][Info] 2014/08/07 17:00:41 RequestId=53e39499-LAzbyH4UHYSR5FAKr4QwiQ== From=127.0.0.1:52876 Service=ajoy NrSubscribers=1 Subscribers="[41786377584]"
[Push][Info] 2014/08/07 17:00:41 RequestID=53e39499-LAzbyH4UHYSR5FAKr4QwiQ== Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991 DeliveryPoint=apns:a9bc4a71a2eb6ba38977d98dace748bb4671de4e MsgId=apns:apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991-122 Success!
[Push][Info] 2014/08/07 17:00:42 Connection closed by APNS: EOF
[Push][Info] 2014/08/07 17:00:42 Service=ajoy Subscriber=41786377584 DeliveryPoint=apns:a9bc4a71a2eb6ba38977d98dace748bb4671de4e Unsubscribe success
[Push][Error] 2014/08/07 17:00:42 Error: <nil>
[Push][Info] 2014/08/07 17:00:42 RequestID=53e39499-LAzbyH4UHYSR5FAKr4QwiQ== Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7 DeliveryPoint=apns:98e33a0cad66bc695e9ba781efa48a4252eb70ba MsgId=apns:apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7-121 Success!
[Push][Info] 2014/08/07 17:02:27 Connection closed by APNS: EOF
[Push][Info] 2014/08/07 17:02:27 Connection closed by APNS: EOF

Is it not possible to use push service development and production in parallel? Do you have any idea what is going wrong?
Thank you.

Best regards,
Urs

Monnand

unread,
Aug 13, 2014, 1:52:44 AM8/13/14
to uni...@googlegroups.com
Hi,

Sorry for my late reply.

I checked my code and unfortunately, uniqush does not support development and production cert/key in parallel. Since the original design of device-provider relationship is one-to-one, instead of one-to-many. i.e. under same service, one device can uniquely has at most one service provider. This may be hard if we change the relationship to one-to-many. Such support may not happen in near future unless some contributor is willing to make this change.

I'm working on version 2.0 of uniqush-push which will take this requirement into consideration. But it's still under development.

-Monnand



--
You received this message because you are subscribed to the Google Groups "uniqush" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uniqush+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Uscher

unread,
Aug 13, 2014, 2:44:26 AM8/13/14
to uni...@googlegroups.com

Hi Monnand

Thank you for your answer. I can arrange with this restriction for the moment. But of course it is a requirement for a productive app to also have a fully functional development app. So please put this requirement on the list for version 2.0.

Best regards,
Urs

Uscher

unread,
Sep 5, 2014, 1:47:05 PM9/5/14
to uni...@googlegroups.com
I did add APNS push service provider for debug first and later on I added push service provider for release.
Since it does not work for debug and release in parallel I do not subscribe anymore for debug.
But I still have double pushes:

[Push][Info] 2014/09/05 14:37:23 RequestId=5409ae83-QAVVEfjDNzs0JrFlURNDAg== From=127.0.0.1:60992 Service=ajoy NrSubscribers=1 Subscribers="[41786377584]"
[Push][Info] 2014/09/05 14:37:23 RequestID=5409ae83-QAVVEfjDNzs0JrFlURNDAg== Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991 DeliveryPoint=apns:6d6209d9e085c98bc20b9821366e2dc3dc49ba17 MsgId=apns:apns:980b5e38a4d563d98d9a543ac0b0d191db9b5991-8 Success!
[Push][Info] 2014/09/05 14:37:23 RequestID=5409ae83-QAVVEfjDNzs0JrFlURNDAg== Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7 DeliveryPoint=apns:98e33a0cad66bc695e9ba781efa48a4252eb70ba MsgId=apns:apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7-9 Success!

Are there really 2 PSPs for APNS stored? Can I just remove PSP for debug, identified by its certificate and key? Will this remove all debug subscriptions?
I just want to make sure not all release subscriptions are wiped out.
Reply all
Reply to author
Forward
0 new messages