I had a strange problem with my Cordova project that uses Firebase. It works fine in the browser, but when I run my application on an emulator or phone (Android), (at least), the first attempt to enter the download always leads to the error "Authentication / network failure". Here is my relevant Firebase code:
<script src="https://www.gstatic.com/firebasejs/3.2.1/firebase.js"></script> <script src="https://www.gstatic.com/firebasejs/ui/live/0.4/firebase-ui-auth.js"></script> <link type="text/css" rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/live/0.4/firebase-ui-auth.css" />
And here is my security meta tag (which, as I heard, can lead to a similar problem):
<meta "content_security_policy": "script-src 'self' https://apis.google.com https://www.googleapis.com https://securetoken.googleapis.com; object-src 'self'", "permissions": ["https://*/*","activeTab"]>
EDIT: I did not change the code, but now I sometimes experience this error in the browser (Chrome), if less. I cannot find the template, although the problem seems to disappear in the session after user registration. Any help would be greatly appreciated, thank you very much.
source share