Giter VIP home page Giter VIP logo

Comments (2)

rdelrosario avatar rdelrosario commented on August 12, 2024

Hi

There was a bug related to integer parsing. Please try the new version just
released: v.1.1.2

https://www.nuget.org/packages/Xam.Plugin.PushNotification

Should fix your issue. Let me know if works.

On Tue, Dec 22, 2015 at 4:47 PM, Lina84 [email protected] wrote:

After upgrade I get the error when push notification arrives:
12-22 23:34:31285 E/mono ( 1453): NewtonsoftJsonJsonReaderException: Error
reading JObject from JsonReader Current JsonReader item is not an object:
Integer Path '', line 1, position 1
12-22 23:34:31285 E/mono ( 1453): at (wrapper dynamic-method)
SystemObject:38ab4821-8395-4444-b869-68cb019a5379
(intptr,intptr,intptr,intptr)
12-22 23:34:31285 E/mono ( 1453): at (wrapper native-to-managed)
SystemObject:38ab4821-8395-4444-b869-68cb019a5379
(intptr,intptr,intptr,intptr)
12-22 23:34:31285 E/mono-rt ( 1453): [ERROR] FATAL UNHANDLED EXCEPTION:
NewtonsoftJsonJsonReaderException: Error reading JObject from JsonReader
Current JsonReader item is not an object: Integer Path '', line 1, position
1
12-22 23:34:31285 E/mono-rt ( 1453): at (wrapper dynamic-method)
SystemObject:38ab4821-8395-4444-b869-68cb019a5379
(intptr,intptr,intptr,intptr)
12-22 23:34:31285 E/mono-rt ( 1453): at (wrapper native-to-managed)
SystemObject:38ab4821-8395-4444-b869-68cb019a5379
(intptr,intptr,intptr,intptr)

I've defined my OnMessage as follows:
public void OnMessage(JObject values, DeviceType deviceType)
{
DebugWriteLine("Message Arrived");
try
{
}
catch (Exception ex)
{
}
}

In 1010 it was:
public void OnMessage(IDictionary Parameters, DeviceType deviceType)
{
DebugWriteLine("Message Arrived");
try
{
LastScreen = Parameters["screen"]ToString();
}
catch (Exception ex)
{
}
}

What do I do wrong?
Thanks in advance for any help


Reply to this email directly or view it on GitHub
#25.

from xamarin-plugins.

Lina84 avatar Lina84 commented on August 12, 2024

Now it works. Thank you!

from xamarin-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.