-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
enhancementNew feature or improved functionality.New feature or improved functionality.
Description
Customer reported that some fields of push notifications (e.g. values _loc-key_ and _title-loc-key_) where received base64-encoded on iOS. Using our Python SDK (1.0.1) and Python 2.7
The issue was that they were sent like
'alert': {
'title-loc-key': '{}-{}-NOTIFICATION-TITLE'.format(item_type, event).upper(),
...
}
whereas in Python 2 it should be
'alert': {
'title-loc-key': u'{}-{}-NOTIFICATION-TITLE'.format(item_type, event).upper(),
...
}
so that the u makes sure the content is a unicode string.
While this is something that Python devs usually know, I think it's worth a mention in the README and the documentation about push notifications (when we'll write it).
Reactions are currently unavailable
Metadata
Metadata
Labels
enhancementNew feature or improved functionality.New feature or improved functionality.