Skip to content

Latest commit

 

History

History
25 lines (10 loc) · 1020 Bytes

README-Firebase.md

File metadata and controls

25 lines (10 loc) · 1020 Bytes

SwiftSurvey Firebase Example

Firebase can be integrated into the app to load surveys remotely and store responses. This project uses Firebase Realtime Database. Additionally, firebase Remote Config can be employed to turn the survey on and off.

  1. Create a firebase project for your iOS app and Register your app with Firebase

  2. Add Firebase to your project via PODS or Swift Package Manager

Include the following packages

  • remote config
  • database

Make sure to replace "GoogleServices-Info.plist" with your own.

  1. Create Database under "Realtime Database" in Firebase Console

  2. (Optional) Remote Config If you want load survey remotely -- output survey as json with function "Survey.SaveToFile" - and add to Firebase Remote Config as variable -- this example uses "SURVEY_DATA" as the key