App/Mobile Apps/android/Project/app/src/main/assets/public/default~firebase-messaging~login-login-module~signup-signup-module~student-ec-form-ec-form-module~st~88bf8aaa-es5.js
/**
     * If the Firebase Installation is not registered yet, this will trigger the
     * registration and return an InProgressInstallationEntry.
     *
     * If registrationPromise does not exist, the installationEntry is guaranteed
     * to be registered.
     */
If the Firebase Installation is not registered yet, this will trigger the
registration and return an InProgressInstallationEntry.

If registrationPromise does not exist, the installationEntry is guaranteed
to be registered.
If the Firebase Installation is not registered yet this will trigger the registration and return an InProgressInstallationEntry . If registrationPromise does not exist the installationEntry is guaranteed to be registered .
function triggerRegistrationIfNecessary(appConfig, installationEntry) {
      if (installationEntry.registrationStatus === 0
      ) {
          if (!navigator.onLine) {
            var registrationPromiseWithError = Promise.reject(ERROR_FACTORY.create("app-offline"
            ));
            return {
              installationEntry: installationEntry,
              registrationPromise: registrationPromiseWithError
            };
          } 
          var inProgressEntry = {
            fid: installationEntry.fid,
            registrationStatus: 1
            ,
            registrationTime: Date.now()
          };
          var registrationPromise = registerInstallation(appConfig, inProgressEntry);
          return {
            installationEntry: inProgressEntry,
            registrationPromise: registrationPromise
          };
        } else if (installationEntry.registrationStatus === 1
      ) {
          return {
            installationEntry: installationEntry,
            registrationPromise: waitUntilFidRegistration(appConfig)
          };
        } else {
        return {
          installationEntry: installationEntry
        };
      }
    }
function triggerRegistrationIfNecessary ( appConfig , installationEntry ) { if ( installationEntry . registrationStatus === 0 ) { if ( ! navigator . onLine ) { var registrationPromiseWithError = Promise . reject ( ERROR_FACTORY . create ( "app-offline" ) ) ; return { installationEntry : installationEntry , registrationPromise : registrationPromiseWithError } ; } var inProgressEntry = { fid : installationEntry . fid , registrationStatus : 1 , registrationTime : Date . now ( ) } ; var registrationPromise = registerInstallation ( appConfig , inProgressEntry ) ; return { installationEntry : inProgressEntry , registrationPromise : registrationPromise } ; } else if ( installationEntry . registrationStatus === 1 ) { return { installationEntry : installationEntry , registrationPromise : waitUntilFidRegistration ( appConfig ) } ; } else { return { installationEntry : installationEntry } ; } }
If the Firebase Installation is not registered yet, this will trigger the
 registration and return an InProgressInstallationEntry.
If the Firebase Installation is not registered yet this will trigger the registration and return an InProgressInstallationEntry .
/* NOT_STARTED */ // Registration required but app is offline. /* APP_OFFLINE */ // Try registering. Change status to IN_PROGRESS. /* IN_PROGRESS */ /* IN_PROGRESS */