Skip to content

Latest commit

 

History

History

iOS

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Build iOS SwiftLint

Overview

This directory contains all the code necessary to build the FDA MyStudies iOS application for study participants. Customization of the Default.xcconfig and Branding.plist files will enable your iOS application to interact with the other components of your FDA MyStudies deployment. Further customization of app branding can be accomplished by replacing the default application images with your own. All configuration related to the creation and operation of studies is done using the Study builder without need for code changes or redeployment of the mobile application.

Example screens

Requirements

The FDA MyStudies iOS application requires Xcode 13 or newer, and can be run on iOS versions 13 and above.

Platform integration

The FDA MyStudies mobile application fetches all study, schedule, activity, eligibility, consent and notification information from the Study datastore and posts pseudonymized participant response data to the Response datastore. Consent forms and any other identifiable data is posted to the Participant datastore. Email and password authentication is handled by the MyStudies Auth server using OAuth 2.0.

Configuration instructions

  1. Open the iOS/MyStudies/MyStudies.xcworkspace in Xcode
  2. Map your project’s build configuration to iOS/MyStudies/MyStudies/Default.xcconfig (instructions)
  3. Update the following in the Default.xcconfig file:
  4. If you haven't already created the Firebase project then, add Firebase to your Xcode project and make sure that Google Analytics is enabled in your Firebase project:
    • If you're creating a new Firebase project, enable Google Analytics during the project creation workflow.
    • If you're using an existing Firebase project that doesn't have Google Analytics enabled, go to the Integrations tab of your settings > Project settings to enable it.
    • When you enable Google Analytics in your project, your Firebase apps are linked to Google Analytics data streams.
    • Add a Firebase configuration file into the root of your Xcode project for using firebase services.
  5. Enable push notifications by creating push notification certificates in encrypted .p12 format (for more information, visit Establishing a Certificate-Based Connection to APNs)
  6. Enable push notification by token based connection with an authentication token signing key, specified as a text file (with a .p8 file extension).
  7. Enable FCM based push notification by uploading your APNs authentication key to Firebase.
  8. Optional. Customize images and text

Building and deploying

Instructions for building and deploying iOS applications can be found here.


Copyright 2022 Google LLC