Comments (6)
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.
Thanks for recalling me , I have downloaded the lasted one and its working absolutely fine.
from apnsphp.
Hey @himanshuingole,
if you are using non-English alphabet you should:
- use "$message->setAutoAdjustLongPayload(false)" because apns can cut message in strange place
- after you should check length of message by "$message->getPayload()" and catch exception if error
- 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.
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:
- 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 :-)
- after you should check length of message by "$message->getPayload()" and catch exception if error
- 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.
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.
Thank you all for sharing these information.
from apnsphp.
Related Issues (20)
- Message Title HOT 1
- Horrible Performance on push to many HOT 1
- Perche molto logs?
- Support for p8 files? HOT 2
- How to add title? HOT 2
- $push->getErrors() not returns identifiers HOT 1
- Unable to send message ID 1: Internal error
- Http/2 send very slow HOT 1
- Push notification with image HOT 2
- Token length is not statically 64 anymore HOT 1
- invalid Payload/Token
- setCustomProperty
- [Proposal] Namespace
- utf-8 and Internal error HOT 1
- 'ApnsPHP_Message' does not have a method 'sound' HOT 1
- Speeding Up Sending By Using Zero for Write Interval
- Autoloader fails on '0' class HOT 1
- Legacy binary only? HOT 2
- Apple push notification service server certificate update? (Help) HOT 2
- Not Receiving Push notification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apnsphp.