我正在尝试在 iOS 模拟器上测试一些 Ionic/Angular 示例应用程序。
在网络上,所有使用 AngularFire 进行 Firestore 的请求都工作得很好。
不知何故,如果我尝试在模拟器上执行相同的应用程序,它会不断加载请求的响应(如果它是空响应,则会说无法检索到任何结果)。
到底是怎么回事?我是否需要专门设置一些内容以使模拟器能够工作并执行对 Firestore 的请求?
ios ionic-framework angularfire2 angular google-cloud-firestore
我正在使用 Angular-Fire 在 Ionic-Capacitor 上进行 Firebase 身份验证。它在 Web 和 Android 上运行良好,但在 IOS 上不行。
当我检查应用程序网络活动时,我意识到应用程序能够从 firebase 成功获取身份验证响应,但它无法完成异步调用。
我的app.module.ts
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [BrowserModule, IonicModule.forRoot({mode: 'ios'}), AppRoutingModule,
HttpClientModule,
AngularFireModule.initializeApp(environment.firebaseConfig),
AngularFireAuthModule,
AngularFirestoreModule
]})
Run Code Online (Sandbox Code Playgroud)
这就是我初始化 Angular fire 的方式。
javascript ionic-framework firebase-authentication capacitor