mardi 10 octobre 2017

Cant connect to phonegap app (ember) thats using firebase

I've built an ember app that uses firebase for the database and the authentication of the app. I then used ember build to build the app and copied the dist folder into phonegap build. Once I did that phonegap built the app making it avialable for me to download onto my android device. The app runs fine however it doesnt allow me to use my login and password to connect firebase and authenicate the user. Is there a setting I've missed in the config.xml setting or config/environment.js

Config.xml

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns   = "http://ift.tt/18Fk3Vk"
    xmlns:gap   = "http://ift.tt/16o90D3"
    id          = "com.phonegap.example"
    versionCode = "10"
    version     = "1.0.0" >

<!-- versionCode is optional and Android only -->

  <name>Test app</name>

  <description>
      This is for testing purposes 
  </description>

  <author href="" email="">
      JSG
  </author>
      <platform name="android">
        <allow-intent href="market:*" />
        <icon density="ldpi" id="ldpi" src="res/icon/android/ldpi.png" />
        <icon density="mdpi" id="mdpi" src="res/icon/android/mdpi.png" />
        <icon density="hdpi" id="hdpi" src="res/icon/android/hdpi.png" />
        <icon density="xhdpi" id="xhdpi" src="res/icon/android/xhdpi.png" />
        <icon density="xxhdpi" id="xxhdpi" src="res/icon/android/xxhdpi.png" />
        <icon density="xxxhdpi" id="xxxhdpi" src="res/icon/android/xxxhdpi.png" />
        <splash density="port-ldpi" id="port-ldpi" src="res/screen/android/port-ldpi.png" />
        <splash density="land-ldpi" id="land-ldpi" src="res/screen/android/land-ldpi.png" />
        <splash density="port-mdpi" id="port-mdpi" src="res/screen/android/port-mdpi.png" />
        <splash density="land-mdpi" id="land-mdpi" src="res/screen/android/land-mdpi.png" />
        <splash density="port-hdpi" id="port-hdpi" src="res/screen/android/port-hdpi.png" />
        <splash density="land-hdpi" id="land-hdpi" src="res/screen/android/land-hdpi.png" />
        <splash density="port-xhdpi" id="port-xhdpi" src="res/screen/android/port-xhdpi.png" />
        <splash density="land-xhdpi" id="land-xhdpi" src="res/screen/android/land-xhdpi.png" />
        <splash density="port-xxhdpi" id="port-xxhdpi" src="res/screen/android/port-xxhdpi.png" />
        <splash density="land-xxhdpi" id="land-xxhdpi" src="res/screen/android/land-xxhdpi.png" />
        <splash density="port-xxxhdpi" id="port-xxxhdpi" src="res/screen/android/port-xxxhdpi.png" />
        <splash density="land-xxxhdpi" id="land-xxxhdpi" src="res/screen/android/land-xxxhdpi.png" />
    </platform>
</widget>

Environment.js

environment: environment,
    rootURL: '',
    locationType: 'hash',
    firebase: 'http://ift.tt/2qEsaVL',
    contentSecurityPolicy: {
        'connect-src': "'self' http://ift.tt/1Us4oBa"
    },
    firebase:{
         apiKey: 'abc',
         authDomain: 'YOUR-FIREBASE-APP.firebaseapp.com',
         databaseURL: 'http://ift.tt/2qEsaVL',
         storageBucket: 'YOUR-FIREBASE-APP.appspot.com',
    },




Aucun commentaire:

Enregistrer un commentaire