{"id":25407155,"url":"https://github.com/aaronksaunders/ionic-react-reactfire-capacitor-app","last_synced_at":"2026-04-14T04:01:30.025Z","repository":{"id":270169885,"uuid":"909530056","full_name":"aaronksaunders/ionic-react-reactfire-capacitor-app","owner":"aaronksaunders","description":"ionic react app with latest version of ionic integrated with reactfire","archived":false,"fork":false,"pushed_at":"2024-12-29T01:39:28.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T06:51:29.105Z","etag":null,"topics":["firebase","firebase-database","ionic-framework","reactfire","reactfire-auth","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronksaunders.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-29T01:27:30.000Z","updated_at":"2024-12-29T01:39:31.000Z","dependencies_parsed_at":"2024-12-29T03:15:55.532Z","dependency_job_id":null,"html_url":"https://github.com/aaronksaunders/ionic-react-reactfire-capacitor-app","commit_stats":null,"previous_names":["aaronksaunders/ionic-react-reactfire-capacitor-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aaronksaunders/ionic-react-reactfire-capacitor-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Fionic-react-reactfire-capacitor-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Fionic-react-reactfire-capacitor-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Fionic-react-reactfire-capacitor-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Fionic-react-reactfire-capacitor-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronksaunders","download_url":"https://codeload.github.com/aaronksaunders/ionic-react-reactfire-capacitor-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Fionic-react-reactfire-capacitor-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31781292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","firebase-database","ionic-framework","reactfire","reactfire-auth","reactjs"],"created_at":"2025-02-16T06:26:18.024Z","updated_at":"2026-04-14T04:01:30.009Z","avatar_url":"https://github.com/aaronksaunders.png","language":"TypeScript","readme":"# Ionic React Firebase Authentication App\n\nA mobile application built with Ionic React and Firebase, demonstrating user authentication and profile management with ReactFire.\n\n## Technologies Used\n\n- [Ionic Framework](https://ionicframework.com/docs/react) - UI components and mobile framework\n- [Capacitor](https://ionicframework.com/docs/capacitor) - Native runtime for web apps\n- [React](https://reactjs.org/) - Frontend framework\n- [TypeScript](https://www.typescriptlang.org/) - Type-safe JavaScript\n- [Vite](https://vitejs.dev/) - Build tool\n- [Firebase](https://firebase.google.com/docs) - Backend services\n- [ReactFire](https://firebaseopensource.com/projects/firebaseextended/reactfire/) - React bindings for Firebase\n\n## Project Structure\n\n```\nionic-react-capacitor-app/\n ├── src/\n │ ├── components/ # Reusable components\n │ ├── pages/ # Page components\n │ ├── hooks/ # Custom React hooks\n │ ├── context/ # React context providers\n │ └── config/ # Configuration files\n ├── public/ # Static assets\n └── firestore.rules # Firebase security rules\n\n```\n\n## Features\n\n- User authentication (sign in/sign up)\n- Profile management\n- Protected routes\n- Firebase Firestore integration\n- Responsive UI with Ionic components\n\n## Environment Variables\n\nCreate a `.env` file in the root directory with the following variables:\n\n```javascript\nVITE_FIREBASE_API_KEY = your_api_key;\nVITE_FIREBASE_AUTH_DOMAIN = your_auth_domain;\nVITE_FIREBASE_PROJECT_ID = your_project_id;\nVITE_FIREBASE_STORAGE_BUCKET = your_storage_bucket;\nVITE_FIREBASE_MESSAGING_SENDER_ID = your_messaging_sender_id;\nVITE_FIREBASE_APP_ID = your_app_id;\n```\n\n## Setup Instructions\n\n1. Clone the repository\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Create Firebase project and add configuration\n\n   access firebase console and create a new project, add firebase to your project, create a new web app, copy the config object and add it to your .env file.\n\n4. Run the development server:\n\n   ```bash\n   npm run dev\n   ```\n\n## Firebase Security Rules\n\nThe application uses the following Firestore security rules:\n\n```\nrules_version = '2';\n\nservice cloud.firestore {\n  match /databases/{database}/documents {\n    match /users/{userId} {\n      allow read: if request.auth != null \u0026\u0026 request.auth.uid == userId;\n      allow write: if request.auth != null \u0026\u0026 request.auth.uid == userId;\n    }\n\n    match /{document=**} {\n      allow read, write: if false;\n    }\n  }\n}\n```\n\n## Firebase Authentication Persistence\n\n### Known Issues\n\nWhen using Firebase Authentication with Capacitor, there's a known issue with persistence storage. The default `browserLocalPersistence` doesn't work correctly on mobile platforms.\n\n### Implementation\n\nWe handle this by using different persistence methods based on the platform:\n\n- Native platforms (iOS/Android): `indexedDBLocalPersistence`\n- Web: `browserLocalPersistence`\n\n```typescript\n// Example from src/config/firebase.ts\nsetPersistence(\n  auth,\n  Capacitor.isNativePlatform()\n    ? indexedDBLocalPersistence\n    : browserLocalPersistence\n);\n```\n\n### References\n\n- [Firebase Auth Persistence Documentation](https://firebase.google.com/docs/auth/web/persistence)\n- [Capacitor Platform Detection](https://capacitorjs.com/docs/apis/platform)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronksaunders%2Fionic-react-reactfire-capacitor-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronksaunders%2Fionic-react-reactfire-capacitor-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronksaunders%2Fionic-react-reactfire-capacitor-app/lists"}