iOS Question APN server

Discussion in 'iOS Questions' started by Shay, Feb 2, 2015.

  1. Shay

    Shay Well-Known Member Licensed User

  2. Erel

    Erel Administrator Staff Member Licensed User

    You should use B4X Push Server. Other solutions will most probably not work.
     
  3. Shay

    Shay Well-Known Member Licensed User

    Can I run the B4X push server from my Linux server? (how?)
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Of course. It is a regular B4J application.
     
  5. Shay

    Shay Well-Known Member Licensed User

    Can it run as a service?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    It is a normal Java application. You can configure it to start automatically. I run several such servers with a simple script that calls nohup java -jar ...
     
  7. Luiz Fernando Orlandini

    Luiz Fernando Orlandini Active Member Licensed User

    Erel, is it possible to provide us the java code from these server. For GCM you did that for us! This would be great!
     
  8. Luiz Fernando Orlandini

    Luiz Fernando Orlandini Active Member Licensed User

    I tried to use a Java APN, but I'm getting an error in the certificate -
    Received fatal alert: unknown_ca

    I guess this is caused, cause when I generate the p12 file, I use B4i.p12 and my push certificate (download from Apple). After read the documention from Apple, I guess I have to use the push.keystore to generate my new p12 file. But I can't do this join... Maybe somebody could help me.

    Thanks.
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    It is a B4J server. The source code is included.

    I highly recommend you to B4X Push Server solution. It works and under the hood it solves many complicated configuration issues.
     
  10. Luiz Fernando Orlandini

    Luiz Fernando Orlandini Active Member Licensed User

    I just solved this issue. I've implement the Java APN using directly the push Keystore, using KeyStore class to load it.

    Now it's good!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice