Page 1 of 1

javax.crypto.BadPaddingException

Posted: Tue Sep 29, 2015 12:10 pm
by Paul Medawar

Hi,

I'm getting the following error message when trying to send a Push Notification.

Do you have any ideas why?

Kind regards

Paul

Image


javax.crypto.BadPaddingException

Posted: Tue Sep 29, 2015 5:15 pm
by Illya Stepanov

Hi Paul -

Could you please clarify what app are you building jQuery Mobile or AngularJS?

Also have you tried to use another keystore file?


javax.crypto.BadPaddingException

Posted: Tue Sep 29, 2015 6:01 pm
by Paul Medawar

Hi Illya,

Jquery Mobile and yes i've tried a different key store file, same response


javax.crypto.BadPaddingException

Posted: Tue Sep 29, 2015 6:57 pm
by Illya Stepanov

We will need to test your app, this not reproducible for me.

Please specify Android version that you're using and share your app with us.
Also provide us your app name and detailed steps how to reproduce it.


javax.crypto.BadPaddingException

Posted: Thu Oct 01, 2015 9:14 am
by Paul Medawar

Hi Illya,

I've tries another Push Certificate and now the error message I'm receiving is

"Unrecoverable error occurred while trying to communicate with apple servers: connection failed
Devices count 1"

I've seen somebody else had the same problem, and the response was that the certificate is out of date or not for the right environment.

My certificate is in date, a production push certificate, and my device is registering in the Devices collection as well as appearing in the device count when i go to send the push.

I've succesfully completed this procedure for two other apps, can you give me some guidance on where I should be looking to resolve this?

thanks
Paul


javax.crypto.BadPaddingException

Posted: Sun Oct 04, 2015 8:37 am
by Paul Medawar

Hi any thoughts on this?


javax.crypto.BadPaddingException

Posted: Sun Oct 04, 2015 3:04 pm
by Illya Stepanov

Paul - Perhaps you had a communication issues. In our environment push messages work well on iOS devices.


javax.crypto.BadPaddingException

Posted: Sun Oct 04, 2015 4:15 pm
by Paul Medawar

Thanks Illya..i'd done this process a number of times before with Appery without any problems

So after redoing all my certs and profiles a number of times I found this

http://reactor.apppresser.com/blog/io...

and it was this specific advice that turned out to work

"Use the same certificate signing request for all certs"


javax.crypto.BadPaddingException

Posted: Sun Oct 04, 2015 5:36 pm
by Alena Prykhodko

Thank you for update, glad it's sorted out.


javax.crypto.BadPaddingException

Posted: Thu Aug 04, 2016 6:52 am
by Elizabeth B.

Hello, how did you fix the problem?