Very strange Parse.com app Error 100 - javascript

I have a very strange problem with my Parse.com app.
First of all, here's the link: linksync.parseapp.com (I provide it here so you can view source code)
Everything was fine until now..
Recently I was unable to log in with my account from my Android phone. As I'm the owner of site, I changed my pass in Parse.com data browser and tried again. No luck! I tried logging via PC Browser - ok.
That's what I have for now:
When I log in from Android Browser - Login failed
When I try to register new account to my website from Android Browser - Error: 100 XMLHttpRequest failed: {}
When I try to log in from my Android app for this website - Login fail
BUT!
When I log in from another Android phone (either from Android browsers or my app) or from any PC, it works!
Looks like my phone is cursed :( I even tried reflashing ROM and updated in to different version, but still can't make this work.
Oh, and from my phone another app, that uses parse.com, doesn't work. It's just as if I'm banned with the only device.
Guys, what can I do to fix it? Any Parse.com devs here?

I had this too, didn't have a clue what caused the error.
Well, you know what?
It turned out that I had no network connection on my phone!
After turning on WIFI on y phone it just worked fine, of course.
Takeaway: it's probably a good idea to build a network connectivity check into your app. When it starts up and there is no connectivity you give a warning to the user and quit (or continue to run in 'offline' mode).

Related

Ionic Cordova Run Browser give device permissions

quick question.
I am currently working on an ionic application which I am testing using the comman 'ionic cordova run browser'. This works fine for most things, however when I try to upload an image to the application I get the following message
Permission Denied
Sorry, we don't have
permission to access your
device's images. Please check
the settings on your phone
and try again.
While I understand where this message comes from and why it appears, my question is how to I make it think that it has the required permissions when running on the browser?

React native app build success, but nothing displayed

I successfully run the react-native app and emulator also opended.
I'm also getting emulator loading message too
However After that it crashes and nothing display
And I'm getting an error when reload the bundle as below
I'm unable to figure out the issue since I'm a react-native beginner.
Appreciate your suggestions
It seems your emulator not connected to your react-native development server. Sometimes it happen, devices connected and somehow it lost connection with the development server. Try running adb devices command on your terminal to check is your emulator available and detected.
I know this is old but maybe this will help someone else.
This could be happening due to several reasons.
Check emulator is working or if its storage is full? wipe the data.
Syntax error could be because of this. please recheck latest changes files.
Personally, I was stuck due to a small comma error in my code.

Facebook SDK FB.GetLoginStatus Load denied by X-Frame-Options (Firefox Only)

I have this web application login page that calls FB.GetLoginStatus() from the Facebook JavaScript SDK after the document is done loading. This worked perfectly fine on all browsers (mobile included) and that was the happily ever after.
BUT, one day, out of plain nowhere, I notice that the SDK is failing to get the login status data of the Facebook user when the page is done loading. I take a look in the console and I see something around the lines of
Load denied by X-Frame-Options [massive link generated by the SDK]
does not permit framing.
Here's what bugs me: this works perfectly fine in Safari. I was introduced to the error when I opened the web app on Chrome (same error as quoted above, slightly different wording). I tried on Firefox and got the same thing. I spent a few hours trying to find a cause but failed and went to sleep.
I wake up the next day and miraculously it's now working on Chrome (?) without me having done any changes (?!). But, for some reason, the error persists only in Firefox now.
Does anyone have a clue what this might be? Something that Firefox does differently that Safari and Chrome don't?
A clue here is that I'm using a tunneling service (ngrok) and I don't have a signed certificate for it, thus I get the casual (you're entering an 'unsafe' website, blah blah blah). Perhaps Firefox is blocking the SDK because the connection is not secure?
Any insight on this would be marvelous. Thanks 🙂
OK, after fighting this for a few hours I finally found out what was bothering Firefox: the website site URL field in the app's Facebook Dashboard settings.
The issue wasn't even with ngrok or a missing signed certificate, it was the fact that the website in the settings had the production domain (.app) instead of the ngrok one I'm currently using for development (eu.ngrok.io).
The only reason I managed to pinpoint this back to the dashboard settings is because I have 2 Facebook apps, and the other one was working fine, so I imagined it might be a misconfiguration in the settings that was causing the issue (Facebook has a shitty standard in place for explaining/handling errors — it's like shooting in the dark until you hit something when using their SDK's).
What I don't understand here is why the heck only Firefox seems to have a problem with this setting being misconfigured or why the issue disappeared out of nowhere from one day to the next for Chrome. Anyways, if I managed to help anyone else fix anything similar with this thread than this headache has been worthwhile.
Peace out ✌🏽

How to debug push notifications for IOS?

I have setup ionic push for Android and IOS, the android version works great, but the IOS doesn't.
I have setup the provisioning and certificate files on IOS and they seem to be fine.
Also, the tokens get generated fine, and if i do a test with ionic push -s or CURL i can see the request going through with no errors that i can tell, just that the notifications don't show on the device.
I made the IOS package using the Phonegap Build service, not sure if that's an issue.
So, i guess my question is if there is a way for me to debug and figure out what went wrong.
Any ideas?
I also suffered a lot in push notification.
Finally i got some solution. it might be helpful for you
If u get device token from APNS server and notification send without any error but still you not getting notification in device then problem is in certificate.
Useful Links:
1) For Troubleshooting Push Notifications is here
2) Tutorial for generating generating certificate and send push notification is Here

android can't see web service

I've written my first Android app (Sencha Touch + Phonegap using Eclipse on PC). It pulls some JSON from a WCF service. It works fine in the emulator.
I've now put it on my phone (Samsung GT-19100T running Gingerbread). The app runs but hangs when calling the service. The phone just shows the loading animation. The server shows no request has reached it. The phone can browse the net ok.
EDIT: I should add that the problem is not the server. I can browse to the same services ok on PC, and we have an iPhone app that works with it fine.
The only other strange thing I've noticed is that if I browse to the endpoint on iPhone or PC, I get the JSON text in the browser. If I try it on the android's browser it says "cannot download".
How do I go about diagnosing this?
Is there some sort of option on the phone?
found it. The answer is to SHOOT ME NOW.
the URL had been entered so long ago I forgot all about it, including little details like the fact that it used an internal ip address.
Total facepalm. No, that won't do it. Let's try a facedesk...

Categories