Retrieving values from Parse.com

Hello,

I am trying to use Parse.com to store values online and retrieve them in Corona App. Well My code is working fine in simulator. Values are loading inside the App when I run it in simulator. But on real device it is not working. On device values are not loading from parse.com. This means my code is correct so something wrong specific to device settings. I mat be missing something in buid.settings. Can some one guide me is it necessary to add something in build.settings or somewhere else to make parse.com work on device too. 

Will be thankful to help

Are you trying this on an Android device or iOS?  If on Android, you’ll need to include some internet related permissions, such as android.permission.INTERNET, android.permission.ACCESS_WIFI_STATE, and android.permission.ACCESS_NETWORK_STATE.  You can read about including these in your build.settings at http://www.coronalabs.com/blog/2013/02/18/say-goodbye-to-default-android-permissions/ and at http://developer.coronalabs.com/content/configuring-projects.

  • Andrew

Hi

I have set permissions for Android but still not success neither on iPhone nor on Android. It is working in simulator but not on device. I am stressed. Any help ??

Have anyone used parse.com with success with corona?

Also I am using the corona build 2013.1076

here is my build.settings

settings = { orientation = { default = "portrait", }, iphone = { plist= { UIStatusBarHidden=true, UIApplicationExitsOnSuspend = false, UIPrerenderedIcon = true, CFBundleDisplayName = "myApp", UIAppFonts = { "League Gothic.ttf" }, FacebookAppID = "xxxxxxxxxxx", CFBundleURLTypes = { { CFBundleURLSchemes = { "fbxxxxxxxxxxx", } } }, }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_WIFI\_STATE", }, }, }

Hi there,

I haven’t used parse.com myself, but I’m happy to try to help (I did research it at one point).  Are you attempting to interface with parse.com using their REST API?  If so, then in the callback listeners for your network requests, I’d suggest putting debug print statements that print out the response from parse.com.  You said in your original post that on the devices “values are not loading from parse.com”.  If you print out the response in your network listener, you’ll be able to see exactly what parse.com is returning (maybe they’re providing a helpful error message).

  • Andrew

Are you trying this on an Android device or iOS?  If on Android, you’ll need to include some internet related permissions, such as android.permission.INTERNET, android.permission.ACCESS_WIFI_STATE, and android.permission.ACCESS_NETWORK_STATE.  You can read about including these in your build.settings at http://www.coronalabs.com/blog/2013/02/18/say-goodbye-to-default-android-permissions/ and at http://developer.coronalabs.com/content/configuring-projects.

  • Andrew

Hi

I have set permissions for Android but still not success neither on iPhone nor on Android. It is working in simulator but not on device. I am stressed. Any help ??

Have anyone used parse.com with success with corona?

Also I am using the corona build 2013.1076

here is my build.settings

settings = { orientation = { default = "portrait", }, iphone = { plist= { UIStatusBarHidden=true, UIApplicationExitsOnSuspend = false, UIPrerenderedIcon = true, CFBundleDisplayName = "myApp", UIAppFonts = { "League Gothic.ttf" }, FacebookAppID = "xxxxxxxxxxx", CFBundleURLTypes = { { CFBundleURLSchemes = { "fbxxxxxxxxxxx", } } }, }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_WIFI\_STATE", }, }, }

Hi there,

I haven’t used parse.com myself, but I’m happy to try to help (I did research it at one point).  Are you attempting to interface with parse.com using their REST API?  If so, then in the callback listeners for your network requests, I’d suggest putting debug print statements that print out the response from parse.com.  You said in your original post that on the devices “values are not loading from parse.com”.  If you print out the response in your network listener, you’ll be able to see exactly what parse.com is returning (maybe they’re providing a helpful error message).

  • Andrew