In the example on the documentation page replace the apn_payload_add_custom_property_int with apn_payload_add_custom_property_string and put in a string value, and the library stops sending messages.
[edit]
I recompiled the library with some print outs, it seems the string variable gets converted to a float somewhere along the way :
In the example on the documentation page replace the apn_payload_add_custom_property_int with apn_payload_add_custom_property_string and put in a string value, and the library stops sending messages.
[edit]
I recompiled the library with some print outs, it seems the string variable gets converted to a float somewhere along the way :
apn_payload_add_custom_property_string(payload_ctx, "string_var", "hoi", NULL);
Gives :
{"aps": {"sound": "default", "alert": "Let me know if you get this.", "badge": 10}, "string_var": 6.4416655778056372e-314}
[2nd Edit]
Seems the problem is in the payload construction :
APN_STRING case is missing the break, once added it will work again it seems.