Windows Phone 8: Parsing Disabled Alerts Invalid Server Error Response

I followed the short tutorial given on the Parse.com quick start page, Push Notifications works great in my app, but the problem is the phone has no network connection, the app crashes.

System.Reflection.TargetInvocationException: An exception was thrown by the target of the invocation. ---> Parse.ParseException: Invalid response from server ---> System.ArgumentException: JSON input was invalid. Parse.Internal.Json.Parse (string input)

I tried to test the network using DeviceNetworkInformation.IsNetworkAvailable before initializing ParseClient, but it only works when there is no network connection at all. I want it to work when the server is not responding.

            ParseClient.Initialize("My App Id", "My .Net id");
            this.Startup += async (sender, args) =>
            {
                ParseAnalytics.TrackAppOpens(RootFrame);

                await ParsePush.SubscribeAsync("");
            };
            ParsePush.ToastNotificationReceived +=ParsePushOnToastNotificationReceived;

      

I am calling the code above inside application ().

+3
c # windows-phone-8 parse.com


source to share


No one has answered this question yet

Check out similar questions:

289
Organization structure timeouts
137
Visual Studio 2015 Broken Razor Intellisense
2
Parse.com Push Subscription not working on Windows Phone 8.1
1
Windows Phone reads images and pixel values
1
Invalid Cross-Stream Access When Calling IAP Function in Windows 8 Phone
1
IBM Worklight 6.1 - tile icon from push notification never clears on Windows Phone 8
1
Windows Phone emulator, access to the server behind a VPN
1
ParseClient.Initialize ("Application ID", ".NET key"). Windows Phone 8 - Parse.com
1
Application crashes when future date is set in Windows phone using push notification markup
0
Raising Parse-Server Alerts with



All Articles
Loading...
X
Show
Funny
Dev
Pics