Start a new topic

Push notifications in Android Xamarin

Hello,  I'm having issues with the push notifications, in the xamarin project I'm working on they already had the push notifications configured, but now that I want to test them it crashes...


Everything goes well in the "onMessage" method, but once it calls the DisplayNotification it crashes giving me :



Newtonsoft.Json.JsonReaderException: Error parsing boolean value. Path '', line 1, position 1.

  at Newtonsoft.Json.JsonTextReader.ParseTrue () [0x00027] in <filename unknown>:0

  at Newtonsoft.Json.JsonTextReader.ParseValue () [0x00120] in <filename unknown>:0

  at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in <filename unknown>:0

  at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in <filename unknown>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00043] in <filename unknown>:0

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00029] in <filename unknown>:0


I'm not pretty sure if it is a Kinvey error, this is the line of the conflict:


var pushNotification = JsonConvert.DeserializeObject<AndroidPushNotificationModel>(message);

Login or Signup to post a comment