1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

iOS Tutorial Push notifications with new Tool

Discussion in 'iOS Tutorials' started by Alberto Iglesias, Feb 17, 2015.

  1. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Now you can send directly from this tool, a Push Notification to your APP, develop with B4i, XCODE or any another development tool.

    Just put the APP TOKEN , the message, Badge, Sound

    The certificate File is generated by B4i, normally locate in MAC during compiling by B4iBuilder.

    Locate in: <Your B4iBuilder Folder>/UploadedProjects/<your user ID>/key/push.p12



    I hope you enjoy!!

    Attached Files:

    Nizze, ilan, b4auser1 and 5 others like this.
  2. little3399

    little3399 Active Member Licensed User

    Good , Would you share the source code ?:)
  3. imbault

    imbault Well-Known Member Licensed User

    Hi @Alberto Iglesias , can you please, share the code of your pc tool, or the core functions?

    Last edited: May 10, 2015
  4. Gijsen

    Gijsen Member Licensed User

    When using the hosted builder, is the B4i.p12 the correct certificate file ?
  5. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Its the same, think the local hosted is the same like hosted builder....

    When I compile and use my certificates I save in a folder, so, when I compiling one project use those certificates, I put in the KEYS folder, like this project, for example:


    When I change the project, I remove this files and put in Keys folder the certificates from another project (Some files is the same for all projects, like .csr, B4i.p12)
  6. edgsistemi

    edgsistemi Member Licensed User


    I have a problem, when I use the program to send a notification log me back the following message

    07/11/2015 01:24:36>[SendRequest]:Error:Authentication failed. The remote party has closed the transport stream.
    07/11/2015 01:24:36>07/11/2015 13:24:36:2A5210A3348B2B5A31ABDCEA951867B6D39E4966256D9AB376A8A0596868B220>{"aps": {"badge": 22,"alert": "Your message","sound": "claque.mp3"}}

    I use the files in the folder b4i.p12 program files and correct.

    Thank you
  7. Gijsen

    Gijsen Member Licensed User

    That means your certificate used to connect to the apple server(s) to send the push message is not correct :(

    I've got it to work by creating my own .p12 file using OSX in a virtual machine.
    I'll make a short manual how to do this.
  8. edgsistemi

    edgsistemi Member Licensed User

    Thank you
  9. cloner7801

    cloner7801 Active Member Licensed User

    How can I get the push.p12 ?
    I use hosted builder
  10. Gijsen

    Gijsen Member Licensed User

    cloner7801 likes this.
  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