I'm trying to build this JSon string as follows
push.QueueNotification(new GcmNotification().ForDeviceRegistrationId(RegID)
.WithJson(@"{""message"":"+Message+"}"));
Now whenever I run this, I get the InvalidCastException was unhandled/Invalid JSON detected! error message.
However when I do the following
push.QueueNotification(new GcmNotification().ForDeviceRegistrationId(RegID)
.WithJson(@"{""message"":""Hello World""}"));
It works perfectly fine.
If anyone has any ideas or suggestions on how to get this working it would be greatly appreciated.
Thanks!