-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
Hello!
First of all, I'd like to thank you for this nice tool!
I'm trying to simulate some notifications on an iOS 9 device, which supports a new payload size limit of either 2KB or 4KB. However, SimulatorRemoteNotification seems to truncate the payload after a certain amount of bytes (256?), which results in the following error:
SimulatorRemoteNotification: error = Error Domain=NSCocoaErrorDomain Code=3840
"Unterminated string around character 313." UserInfo={NSDebugDescription=Unterminated
string around character 313.}
I tried multiplying the values of the following constants by 8, but this seemed to have no effect:
UIApplication+SimulatorRemoteNotifications.m\SimulatorRemoteNotificationsBufferLength
ACSimulatorRemoteNotificationsService.m\SimulatorRemoteNotificationsServiceBufferLength
How can the code be modified to support the increased payload size?
P.S.
I know the payload I'm testing is valid because it gets delivered successfully through APNS when testing with a real device.
(Edit: updated the link to the documentation where the payload size is discussed)
Metadata
Metadata
Assignees
Labels
No labels