iOSアプリでfirebaseで実装できる機能のサンプルコード集
Apple Bundle ID を入力
GoogleService-Info.plist をダウンロード
SPM パッケージURL: https://github.com/firebase/firebase-ios-sdk
Up to Next Major Version で「Add Package」
AppDelegate に
import FirebaseCore
import FirebaseFirestore
import FirebaseAuth
application(_:didFinishLaunchingWithOptions:)に
FirebaseApp.configure()
[Sign-in method] タブで [メール / パスワード] を有効にして、[保存]
ルール]タブで下記のように修正する
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}