Nachdem ich mir alle Threads und Vorschläge angesehen habe, bekomme ich für mich immer noch den Fehler. Hinzufügen von ExperimentalforcelongPolling: TRUE half nicht. Ich müde auch eine andere Flagge ohne Glück. < /P>
File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.293Z] @firebase/firestore: Firestore (9.23.0): WebChannelConnection RPC 'Listen' stream 0x4146ee4a transport errored: [object Object]
2025-02-28 00:19:42.298 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.296Z] @firebase/firestore: Firestore (9.23.0): PersistentStream close with error: FirebaseError: [code=unavailable]: The operation could not be completed
2025-02-28 00:19:42.303 27910-27910 Capacitor/Console it.moblize.baniya E File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.299Z] @firebase/firestore: Firestore (9.23.0): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unavailable]: The operation could not be completed
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
2025-02-28 00:19:42.309 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.306Z] @firebase/firestore: Firestore (9.23.0): MemoryPersistence Starting transaction: Release target
2025-02-28 00:19:42.315 27910-27910 Capacitor/Console it.moblize.baniya E File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: ERROR Error: Uncaught (in promise): FirebaseError: [code=unavailable]: Failed to get document because the client is offline.
FirebaseError: Failed to get document because the client is offline.
2025-02-28 00:19:42.316 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.314Z] @firebase/firestore: Firestore (9.23.0): MemoryPersistence Starting transaction: Release target
2025-02-28 00:19:42.318 27910-27910 Capacitor/Console it.moblize.baniya E File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: ERROR Error: Uncaught (in promise): FirebaseError: [code=unavailable]: Failed to get document because the client is offline.
FirebaseError: Failed to get document because the client is offline.
2025-02-28 00:19:42.320 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.318Z] @firebase/firestore: Firestore (9.23.0): WebChannelConnection Creating RPC 'Listen' stream 0x4146ee4b: https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel {"httpSessionIdParam":"gsessionid","initMessageHeaders":{"X-Goog-Api-Client":"gl-js/ fire/9.23.0","Content-Type":"text/plain","X-Firebase-GMPID":"1:329500481487:web:7157d20dc5123abd4ea4ba"},"messageUrlParams":{"database":"projects/baniya-38d78/databases/(default)"},"sendRawJson":true,"supportsCrossDomainXhr":true,"internalChannelParams":{"forwardChannelRequestTimeoutMs":600000},"forceLongPolling":true,"detectBufferingProxy":false,"xmlHttpFactory":{"l":null,"j":false},"encodeInitMessageHeaders":true}
< /code>
my App.module.ts sieht wie unten aus: < /p>
const firebaseConfig = {
databaseURL: 'https://XXX.firebaseio.com',
apiKey: "XXXX",
authDomain: "XXX.firebaseapp.com",
projectId: "XXX-38d78",
storageBucket: "XXX-38d78.appspot.com",
messagingSenderId: "XXXX",
appId: "1:XXXX:web:XXX",
measurementId: "G-XXXX"
};
@NgModule({
declarations: [
AppComponent,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [
BrowserModule,
IonicModule.forRoot(
{
mode: 'ios'
}
),
provideFirebaseApp(() => initializeApp(firebaseConfig)),
provideAuth(() => {
if (Capacitor.isNativePlatform()) {
return initializeAuth(getApp(), {
persistence: indexedDBLocalPersistence,
});
} else {
return getAuth();
}
}),
provideFirestore(() => {
return initializeFirestore(getApp(), {
experimentalForceLongPolling: true,
})
}),
AppRoutingModule,
FormsModule,
ReactiveFormsModule,
CurrencyPipe
],
providers: [
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
CurrencyPipe
],
bootstrap: [AppComponent],
})
export class AppModule {}
Mein FireBase -Datenbankname ist standardmäßig, da ein Thread vorschlägt, dass ein nicht Standardname ein Problem verursacht. Das Gleiche funktioniert auf iOS
Nachdem ich mir alle Threads und Vorschläge angesehen habe, bekomme ich für mich immer noch den Fehler. Hinzufügen von ExperimentalforcelongPolling: TRUE half nicht. Ich müde auch eine andere Flagge ohne Glück. < /P> [code]File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.293Z] @firebase/firestore: Firestore (9.23.0): WebChannelConnection RPC 'Listen' stream 0x4146ee4a transport errored: [object Object] 2025-02-28 00:19:42.298 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.296Z] @firebase/firestore: Firestore (9.23.0): PersistentStream close with error: FirebaseError: [code=unavailable]: The operation could not be completed 2025-02-28 00:19:42.303 27910-27910 Capacitor/Console it.moblize.baniya E File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.299Z] @firebase/firestore: Firestore (9.23.0): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unavailable]: The operation could not be completed This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend. 2025-02-28 00:19:42.309 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.306Z] @firebase/firestore: Firestore (9.23.0): MemoryPersistence Starting transaction: Release target 2025-02-28 00:19:42.315 27910-27910 Capacitor/Console it.moblize.baniya E File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: ERROR Error: Uncaught (in promise): FirebaseError: [code=unavailable]: Failed to get document because the client is offline. FirebaseError: Failed to get document because the client is offline. 2025-02-28 00:19:42.316 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.314Z] @firebase/firestore: Firestore (9.23.0): MemoryPersistence Starting transaction: Release target 2025-02-28 00:19:42.318 27910-27910 Capacitor/Console it.moblize.baniya E File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: ERROR Error: Uncaught (in promise): FirebaseError: [code=unavailable]: Failed to get document because the client is offline. FirebaseError: Failed to get document because the client is offline. 2025-02-28 00:19:42.320 27910-27910 Capacitor/Console it.moblize.baniya I File: https://localhost/main.7f6f6bc5bd9d23e4.js - Line 1 - Msg: [2025-02-28T06:19:42.318Z] @firebase/firestore: Firestore (9.23.0): WebChannelConnection Creating RPC 'Listen' stream 0x4146ee4b: https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel {"httpSessionIdParam":"gsessionid","initMessageHeaders":{"X-Goog-Api-Client":"gl-js/ fire/9.23.0","Content-Type":"text/plain","X-Firebase-GMPID":"1:329500481487:web:7157d20dc5123abd4ea4ba"},"messageUrlParams":{"database":"projects/baniya-38d78/databases/(default)"},"sendRawJson":true,"supportsCrossDomainXhr":true,"internalChannelParams":{"forwardChannelRequestTimeoutMs":600000},"forceLongPolling":true,"detectBufferingProxy":false,"xmlHttpFactory":{"l":null,"j":false},"encodeInitMessageHeaders":true} < /code> my App.module.ts sieht wie unten aus: < /p> const firebaseConfig = { databaseURL: 'https://XXX.firebaseio.com', apiKey: "XXXX", authDomain: "XXX.firebaseapp.com", projectId: "XXX-38d78", storageBucket: "XXX-38d78.appspot.com", messagingSenderId: "XXXX", appId: "1:XXXX:web:XXX", measurementId: "G-XXXX" };
@NgModule({ declarations: [ AppComponent, ], schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [ BrowserModule, IonicModule.forRoot( { mode: 'ios' } ), provideFirebaseApp(() => initializeApp(firebaseConfig)), provideAuth(() => { if (Capacitor.isNativePlatform()) { return initializeAuth(getApp(), { persistence: indexedDBLocalPersistence, }); } else { return getAuth(); } }), provideFirestore(() => { return initializeFirestore(getApp(), { experimentalForceLongPolling: true, }) }), AppRoutingModule, FormsModule, ReactiveFormsModule, CurrencyPipe ], providers: [ { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }, CurrencyPipe ], bootstrap: [AppComponent], }) export class AppModule {} [/code] Mein FireBase -Datenbankname ist standardmäßig, da ein Thread vorschlägt, dass ein nicht Standardname ein [url=viewtopic.php?t=15738]Problem[/url] verursacht. Das Gleiche funktioniert auf iOS
Nachdem ich mir alle Threads und Vorschläge angesehen habe, bekomme ich für mich immer noch den Fehler
File: - Line 1 - Msg: @firebase/firestore: Firestore (9.23.0): WebChannelConnection RPC...
Ich arbeite an einem Laravel 11 und dem PHP 8.2.12-Projekt unter Windows 11 und verwende Kreait/Firebase-Php, um eine Verbindung zum Firestore herzustellen. Ich habe ein seltsames Problem, bei dem...
Ich entwickle eine Ionic/Angular-Anwendung unter Verwendung der @capacitor-firebase/authentication-Bibliothek für die Benutzerauthentifizierung per Telefonnummer.
Ich habe die folgende Methode...
Ich entwickle eine Ionic/Angular-Anwendung unter Verwendung der @capacitor-firebase/authentication-Bibliothek für die Benutzerauthentifizierung per Telefonnummer.
Ich habe die folgende Methode...
Ich entwickle eine ionische/Winkelanwendung mit der @capacitor-fireBase/Authentifizierungsbibliothek für die Benutzerauthentifizierung über Telefonnummer. in meinem Dienst:
public async...