user3423455
user3423455

Reputation: 25

Parse.com saveInBackground not working on all devices

I have a simple piece of code:

ParseObject testobject = new ParseObject("Test");
testobject.put("customerName", "John");
testobject.saveInBackground();

If I run this on my emulator, it works, a Test class is made in my Parse project and the value John is added to the Row customername.

If I run this on my mobile phone the result is also succesful.

But if I run the exact same program on my Tablet, nothing happens.

(the callback = null, .getResult() and .getError() are also null)

Any idea where the problem lies?

Upvotes: 1

Views: 738

Answers (1)

beginnerAndroid
beginnerAndroid

Reputation: 75

Are you using Wi-fi on your phone or using mobile internet? Depending on where you are (Home, School/University) they may have blocked some ports which stop the service from running.

Something I saw is, you've got spaces between 'testobject .put' and 'testobject .saveInBackground();', that may be your issue?

Upvotes: 1

Related Questions