Giter VIP home page Giter VIP logo

Comments (6)

duccio avatar duccio commented on June 29, 2024

Hi.

Are you using the last version in GitHub? Code on Google Code is outdated.

In commit 42c03d4 I modified the way I send messages to Apple Servers.

Ciao,

A.

from apnsphp.

himanshuingole avatar himanshuingole commented on June 29, 2024

Thanks for recalling me , I have downloaded the lasted one and its working absolutely fine.

from apnsphp.

hshhhhh avatar hshhhhh commented on June 29, 2024

Hey @himanshuingole,

if you are using non-English alphabet you should:

  1. use "$message->setAutoAdjustLongPayload(false)" because apns can cut message in strange place
  2. after you should check length of message by "$message->getPayload()" and catch exception if error
  3. be careful with your php version: if it lowest then 5.4 you can meet memory leak, to fix it read here: #8

from apnsphp.

duccio avatar duccio commented on June 29, 2024

Il giorno 14/feb/2013, alle ore 19:50, hshhhhh [email protected] ha scritto:

Hey @himanshuingole,

if you are using non-English alphabet you should:

  1. use "$message->setAutoAdjustLongPayload(false)" because apns can cut message in strange place

APNS should cut message in the right place if UTF-8 is used, not in "strange" place :-)

  1. after you should check length of message by "$message->getPayload()" and catch exception if error
  2. be careful with your php version: if it lowest then 5.4 you can meet memory leak, to fix it read here: #8

Yeah, I will fix asap ;-)


Reply to this email directly or view it on GitHub.

from apnsphp.

hshhhhh avatar hshhhhh commented on June 29, 2024

APNS should cut message in the right place if UTF-8 is used, not in "strange" place :-)

May be it should, but when I made experements with it sometimes if message was too large I got not 'messages -1 symbol' but 'half of message'. May be it was old version of your library, I don't remember :)/

Now I don't send too long message and I think it's correct way because better do not send anything then cutted message :)

from apnsphp.

himanshuingole avatar himanshuingole commented on June 29, 2024

Thank you all for sharing these information.

from apnsphp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.