|
Jason Shaw |
at Sep 12, 2015 at 10:43 pm
|
⇧ |
| |
Hi Michael, thank you for the specific ways I can debug this further. I
will try to do it tomorrow, because the solution I found works but it isn't
optimal.
Recently, the latest ionic-service-core.js started automatically
uncommenting cordova.js from index.html. It does this because the ionic
deploy service serves the app files from subdirectories, and the cordova.js
file must be injected into each of those possible directories. So by
manually uncommenting cordova.js it apparently breaks ionic deploy, but
should not affect the rest of the app or other ionic services.
I had to disable deploy because my app was randomly hanging on Android
(nexus 5 , 4.4.4) while connecting to Firebase. Actually, the connection
would hang, the app still works (but waiting upon a promise), and weirdly
enough, pressing the back button or minimizing the app, causes the
connection to re-connect and finish the promise. (and only on Android.
Works fine on Ios and Browser).
I'll take a look at debugging the firebase connection itself using
Michael's instructions, it may give us a message as to why the connection
is hanging.
On Friday, September 11, 2015 at 6:19:39 PM UTC-4, Michael Lehenbauer wrote:Hey Jason,
Hard to say what's going on. A couple things you could try:
- Add "Firebase.enableLogging(true)" to the beginning of your app
(before you call "new Firebase(...)") and try to capture the log output
during one of these hangs. If you share that, it may provide some clues.
- Under the covers, Firebase has two different transports it can use
to talk to the Firebase Servers, depending on the browser capabilities.
You could try forcing one or the other and see if it has an effect (either
causes or prevents the problem). Specifically, you can call
"Firebase.INTERNAL.forceLongPolling()" or
"Firebase.INTERNAL.forceWebSockets()". Again, you need to call it before
calling "new Firebase(...)"
Let us know if you learn anything.
Thanks!
-Michael
On Wed, Sep 9, 2015 at 11:06 AM, Jason Shaw <ja...@engageify.com
<javascript:>> wrote:
Hi Michael, my Android app has a stalling issue that pops up from time to
time. Take a look at this post:
http://forum.ionicframework.com/t/ionic-firebase-stuck-loading-forever/31146What could be the problem you think?
On Tuesday, June 2, 2015 at 8:46:57 PM UTC-4, Michael Kato Wulf wrote:It's fairly impossible to determine whether you have the same problem
without knowing the root cause.
The original post was caused by not having a Content Security Policy
(i.e. a network request whitelist)
<
https://github.com/apache/cordova-plugin-whitelist> into Cordova. This
is required to access any external URLs via the InAppBrowser.
Alternately, instead of a CSP, one could also use
cordova-plugin-whitelist
<
https://github.com/apache/cordova-plugin-whitelist> to provide a list
of domains. An interesting discussion on the *same issue* can be found
here
<
http://stackoverflow.com/questions/29912773/issue-with-android-hybid-app-to-display-remote-image-with-ionic-framework>,
with some possible solutions, including those noted above.
Cheers,
Kato
On Mon, Jun 1, 2015 at 5:35 PM, Jacob Wenger wrote:Hi Adrien,
A multitude of things could cause connectivity issues like this. Please
reach out to sup...@firebase.com as Kato suggested and provide some
information about what is failing. We can give you individual attention
there.
Jacob
On Thu, May 28, 2015 at 10:53 AM, Adrien Fallou <adrien...@gmail.com>
wrote:
Hi,
I have the same problem, do you have any suggestion (ie: is this a
general problem with a general solution?)
Le mercredi 20 mai 2015 13:52:35 UTC-7, Michael Kato Wulf a écrit :
Hi Tobias,
Please reach out to sup...@firebase.com with specific URLs. I'll be
happy to take a look.
Cheers,
Kato
On Tue, May 19, 2015 at 8:29 AM, Tobias Geipert <netz...@gmail.com>
wrote:
Hi,
I'm developing a hybrid app using the Ionic Framework based on
AngularJS and Firebase. Since yesterday I experience issues from time to
time when testing my app on an android device. I can't connect to
firebaseio receiving these error messages in my console.
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=34983995&cb=10&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=42065037&cb=11&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=86776504&cb=12&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=97539823&cb=13&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=85215197&cb=14&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=9026517&cb=15&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=97406275&cb=16&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=40702669&cb=17&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=22149050&cb=18&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=34669568&cb=19&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
https://thisisnottherealname.firebaseio.com/.lp?start=t&ser=28597946&cb=20&v=5Failed to load resource: the server responded with a status of 404 (Not
Found)
When I browse one of those URLs manually I receive the following, so
the source exists:
function pLPCommand(c, a1, a2, a3, a4) {
parent.window["pLPCommand3"] && parent.window["pLPCommand3"](c, a1, a2, a3, a4);
}
function pRTLPCB(pN, data) {
parent.window["pRTLPCB3"] && parent.window["pRTLPCB3"](pN, data);
}
pRTLPCB(0,[{"d":{"d":"s-dal5-nss-34.firebaseio.com","t":"r"},"t":"c"}]);
pLPCommand('close');
If I test it on my Desktop Browser it works correctly.
The most annoying thing is, that it does also work from time to time in my app. So I'm not sure if it's a server side issue or perhaps some race conditions in my app. Does anyone have an idea for further analysis?
--
You received this message because you are subscribed to the Google
Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to firebase-angul...@googlegroups.com.
To post to this group, send email to firebase...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebase-angular/fb731e4f-12ef-4bb7-b6f0-fc76f6968dfd%40googlegroups.com<
https://groups.google.com/d/msgid/firebase-angular/fb731e4f-12ef-4bb7-b6f0-fc76f6968dfd%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit
https://groups.google.com/d/optout.--
You received this message because you are subscribed to the Google
Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to firebase-angul...@googlegroups.com.
To post to this group, send email to firebase...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebase-angular/80ec1a25-1275-4841-85f7-2ceec9938df5%40googlegroups.com<
https://groups.google.com/d/msgid/firebase-angular/80ec1a25-1275-4841-85f7-2ceec9938df5%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit
https://groups.google.com/d/optout.--
You received this message because you are subscribed to the Google
Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to firebase-angul...@googlegroups.com.
To post to this group, send email to firebase...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebase-angular/CAGcMwsCMYW5TwfENv-LTYTWLfCa1dWEkHBjYoaHh-M-2d8tLoQ%40mail.gmail.com<
https://groups.google.com/d/msgid/firebase-angular/CAGcMwsCMYW5TwfENv-LTYTWLfCa1dWEkHBjYoaHh-M-2d8tLoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit
https://groups.google.com/d/optout. --
You received this message because you are subscribed to the Google Groups
"Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to firebase-angul...@googlegroups.com <javascript:>.
To post to this group, send email to firebase...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebase-angular/2b0b93b9-5585-494f-a739-d69c8f43a835%40googlegroups.com<
https://groups.google.com/d/msgid/firebase-angular/2b0b93b9-5585-494f-a739-d69c8f43a835%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit
https://groups.google.com/d/optout. --
You received this message because you are subscribed to the Google Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-angular+unsubscribe@googlegroups.com.
To post to this group, send email to firebase-angular@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebase-angular/21f74977-5d8f-4179-93c6-0efebffb700a%40googlegroups.com.For more options, visit
https://groups.google.com/d/optout.