android - django-scarface strange message trimmed on iOS push notification -


i have strange issue ios push notification , django app.

in djnago application integrated django-scarface send push notification ios , android device using amazon aws sns service.

in test can send push notifications generic device using string message. can receive correctly notifications on devices.

now, if change text of notification this:

notification_message = notifications.settings.request_received_notification_message % sender.from_user.first_name  request_received_notification_message = "%s sent request!" 

notification_message correctly generated... example read u"safari sent request!" (in debug mode) but, when receive notification on ios device have this:

"safari sent you...." 

for strange region message trimmed...

but, if set hardcoded name works well: example, if have:

notification_message = notifications.settings.request_received_notification_message % "safari" 

have suggestion strange problem?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -