You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@Dev-iL I tried changing SimulatorRemoteNotificationsBufferLength in both UIApplication+SimulatorRemoteNotifications.m and ACSimulatorRemoteNotificationsService.m to 2048 and was able to successfully receive larger payloads.
Maybe try cleaning your project / deleting your derived data before rebuilding?
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:
I tried multiplying the values of the following constants by 8, but this seemed to have no effect:
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)
The text was updated successfully, but these errors were encountered: