Can't figure out why my app can't access Parse when it is not on my wifi network


#1

Hi,

I have an app that is using ionic framework and access data via Parse.com. The app is written in Javascript and use cordova to deploy to device. When running the app on my android device through USB, the app works fine and data are coming back from Parse.com.

The app is initialized with
Parse.initalize(appId, javascriptKey)

However, when the app is run with usb cable disconnected, no data comes back.

I’ve tried initializing with clientId such as Parse.initialize(appId, clientId)
But that didn’t work either.

When debugging with Chrome via usb, it throws an error
Failed to load resource: the server responded with a status of 401 (Unauthorized)

What am I doing wrong?

Thanks,


#2

Hey Playbox,

Can you print out the full 401 response from Parse? We’re using a similar Ionic + Parse setup so I might be able to help you out. Thanks!