用于网络应用的 Cloud Firestore

Cloud Firestore for webapp

我在 Stripe.I 中使用 Plaid 进行 ACH 付款,想在 android 中使用它,但文档在 javascript.so 中 我在 android.So 中使用 webView 当用户在 HTML 页面中提供他的 ACH 银行详细信息,这些值将被转换为令牌并需要存储在云中 firestore.But 问题是这些值没有存储在云中 firestore.Here 是 HTML 我用于此目的的页面

<button id='linkButton'>Proceed To Pay</button>
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase-auth.js"></script>
<script>
  // Initialize Firebase
  var config = {
    apiKey: "AIzaSyAhhxfqpoILYEA1Pnt7ciRpRm_hniJ3HUc",
    authDomain: "wallet-d66d9.firebaseapp.com",
    databaseURL: "https://wallet-d66d9.firebaseio.com",
    projectId: "wallet-d66d9",
    storageBucket: "wallet-d66d9.appspot.com",
    messagingSenderId: "1040078578516"
  };
  firebase.initializeApp(config);
</script>
<script src="https://cdn.plaid.com/link/v2/stable/link-initialize.js"></script>

<script>
var linkHandler = Plaid.create({
  env: 'sandbox',
  clientName: 'Stripe/Plaid Test',
  key: '19cf65eeb2a40ac3e397ebb0e76072',
  product: ['auth'],
  selectAccount: true,
  onSuccess: function(public_token, metadata) {
    // Send the public_token and account ID to your app server.
    //var current = firebase.auth().currentUser.uid;
    var db = firebase.firestore();
    var dbRef = db.collection('deyaPayusers').doc("CDF6BVM4TXSOwAt0tVlUQTliBx53").collection('plaid').add({
    pubToken : public_token,
    acctId : metadata.account_id}).then(ref => {
    console.log('Added document with ID: ', ref.id);
});
    console.log('public_token: ' + public_token);
    console.log('account ID: ' + metadata.account_id);
  },
  onExit: function(err, metadata) {
    // The user exited the Link flow.
    if (err != null) {
      // The user encountered a Plaid API error prior to exiting.
    }

当我使用浏览器执行文件时,数据存储在 firestore 中,但是当我在 webView 中使用时,它没有存储 data.I 遵循与网络相同的规则 HTML页。

如果想在使用 webview 的移动设备上使用格子,这是正确的方法,格子提供了格子在移动设备中集成的示例 devices.Here 是 link https://github.com/plaid/link 遵循它并且更改密钥。