I try to use javaPns to send push notifications to my device, but I get a file not found exception if I try to use a certificate which is not located on my server but on an external server.
I think this is because javaPns uses
new FileInputStream(path)
instead of
InputStream is = new URL("http://stackoverflow.com/").openStream();
is there a way to use an external server without modify the javaPNS code?
THX 4 your help
If you are using JavaPNS 2, you can provide an
InputStreamfor the keystore (not just a local file path). Simply create an InputStream as you wrote in your question here, and pass it to any JavaPNS method that requires a keystore. See the library’s on-line documentation for more information.