Comments (4)
I assume you're right about support of unicode. But I need some example of your
code to make patch
Original comment by [email protected]
on 18 Apr 2010 at 1:25
from apns-python-wrapper.
Sorry, forget about this
I tried something like this in django:
message = APNSNotification()
message.alert(u'äüößÄÜÖ')
now I do:
message.alert(smart_str(u'äüößÄÜÖ'))
and erverything works fine...
Original comment by [email protected]
on 18 Apr 2010 at 4:20
from apns-python-wrapper.
Anyway you can make additional condition in notifications.py line 289:
add:
if not isinstance(alert, str) and not isinstance(alert, unicode) and not
isinstance(alert, APNSAlert):
instead of:
if not isinstance(alert, str) and not isinstance(alert, APNSAlert):
and at line 324:
if isinstance(self.alertObject, str) or isintance(self.alertObject, unicode):
instead of:
if isinstance(self.alertObject, str):
I'll fix it in upcoming version of wrapper
Original comment by [email protected]
on 18 Apr 2010 at 5:08
from apns-python-wrapper.
This issue have been fixed in 0.5 version of APNSWrapper
Original comment by [email protected]
on 24 Apr 2010 at 9:36
- Changed state: Fixed
from apns-python-wrapper.
Related Issues (20)
- APNSNotification always contains "aps" keys - it should be added only if is not empty HOT 1
- patch for long connection
- [Errno 1] _ssl.c:503: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown HOT 5
- [pull request] Add support for expiry (and enhanced notification format)
- wrapper.notify() Exception: argument for 's' must be a string HOT 1
- Badges won't clear HOT 1
- I can't send dict format payload
- crash when enabling both force_ssl_command and debug_ssl
- Patch for /APNSWrapper/notifications.py
- can not add passphrase in the code if i use this library
- Changes to get APNS working on Fedora HOT 3
- ImportError: No module named 'utils' HOT 1
- SSL v3 Poodle Patch Fix
- Typo: APNSValueERror HOT 2
- Cannot install if ssl module is not installed HOT 1
- to openssl or not HOT 6
- Still doesn't handle unicode strings HOT 5
- No support for keeping connection to apns open HOT 7
- socket.error: [Errno 54] Connection reset by peer HOT 1
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 apns-python-wrapper.