iOS Push development: The following is a push development based on open source Javapns
1, Derinputstream.getlength (): lengthtag=111, too big.
First, exclude whether or not the certificate. P12 file is compiled/modified, MAVEN project is packaged and processed
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>p12</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
2, javax.net.ssl.SSLException:Received fatal Alert:internal_error
Certificate issue: Regenerate the certificate ( the certificate that is generated after the push feature is turned on )
GitHub Open Source Javapns (source tape test example): Https://github.com/fernandospr/javapns-jdk16.git
Reference documents:
Apple Generate Certificate: http://www.cnblogs.com/taintain1984/p/3716642.html
Java implementation: http://blog.csdn.net/kerryzb/article/details/51507054
Apple iOS, Android push feature development