この JSON 文字列を次のように構築しようとしています
push.QueueNotification(new GcmNotification().ForDeviceRegistrationId(RegID)
.WithJson(@"{""message"":"+Message+"}"));
これを実行するたびに、InvalidCastException was unhandled/Invalid JSON detected が発生します。エラーメッセージ。
ただし、次のことを行うと
push.QueueNotification(new GcmNotification().ForDeviceRegistrationId(RegID)
.WithJson(@"{""message"":""Hello World""}"));
それは完全にうまく機能します。
これを機能させる方法についてアイデアや提案があれば、大歓迎です。
ありがとう!