Comments (2)
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.
Now it works. Thank you!
from xamarin-plugins.
Related Issues (20)
- PushNotifications: Empty Body with FCM on Android HOT 1
- Help configuring custom icon and sound on notification HOT 2
- How do I get the Accelerometer and Magenetometer values simultaniously?
- got an error while registering push notifications HOT 4
- CrossPushNotificationListener Missing
- UWP notifications not firing HOT 3
- ANDROID Crash INVALID_PARAMETERS HOT 1
- MotionVector.cs ToString implementation
- Android - calling register() causes nav bar to disappear. HOT 1
- How can i convert the ((MotionVector)a.Value).Z from accelerattor to a angle? HOT 1
- Edit push notification sound
- Reconvert iOS Device Token to NsData problem
- Problem receiving push in iOS 11 HOT 3
- Tizen support
- Android 8 not getting notifications HOT 1
- Light Sensor
- Support .Net standard 2.0
- device motion, SensorValueChanged not fired
- Sample App is not working
- All plugins are deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin-plugins.