Skip to content

Conversation

@russellwheatley
Copy link
Member

@russellwheatley russellwheatley commented Nov 21, 2025

React Native Firebase AI - Template Models & Live API

New Features

Template Models

  • getTemplateGenerativeModel(ai, requestOptions?) - Execute server-side Gemini templates with streaming support
  • getTemplateImagenModel(ai, requestOptions?) - Execute server-side Imagen templates for image generation
  • TemplateGenerativeModel - Class for template-based text generation
  • TemplateImagenModel - Class for template-based image generation

Live API

  • getLiveGenerativeModel(ai, modelParams) - Create real-time bidirectional AI sessions
  • LiveGenerativeModel - Class for live generative AI interactions
  • LiveSession - Bidirectional streaming session with send/receive methods
  • WebSocket-based real-time communication with the Gemini 2.0 Live API

Cursor Rules

  • Cursor rules now for doing a comparison of the firebase-js-sdk and react native firebase AI package to find API gaps. Requires having firebase-js-sdk codebase locally. To run the discovery of missing API:
Follow @porting-workflow.md

Firebase JS SDK location: <PATH TO FIREBASE JS SDK>

Start at Step 1: Discovery

Fixes

  • Fixed issues with running manual test app. AuthMFADemonstrator had a few issues that caused crash when running.

@vercel
Copy link

vercel bot commented Nov 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-native-firebase Ready Ready Preview Comment Nov 24, 2025 3:09pm

@russellwheatley russellwheatley changed the title chore: ai package helpers for porting over from JS SDK feat(ai): feature parity with firebase-js-sdk Nov 21, 2025
import { FirestoreOnSnapshotInSyncTest } from './firestore/onSnapshotInSync';
import { VertexAITestComponent } from './vertexai/vertexai';
import { AuthTOTPDemonstrator } from './auth/auth-mfa-demonstrator';
import { AuthMFADemonstrator } from './auth/auth-mfa-demonstrator';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fault sorry. And just bit me when I went to test something

Copy link
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this PR is monstrous huge 😅 - not bad in and of itself there is no other way to do it, just wow.

That said, it does all look good - as a port should.
CI is passing which is good but for some reason functions is failing for me locally e2e iOS for some reason. I need to figure that out before merging this in for release

@mikehardy mikehardy added blocked: do-not-merge Do not merge this issue without approval by the person who labelled this issue as Do Not Merge Workflow: Pending Merge Waiting on CI or similar and removed blocked: do-not-merge Do not merge this issue without approval by the person who labelled this issue as Do Not Merge labels Nov 27, 2025
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Nov 27, 2025
@mikehardy
Copy link
Collaborator

Okay - I think it was likely something about the polyfills or something, after a git clean -d -x -f and \rm -fr ~/Library/Developer/Xcode/DerivedData then reinstalling everything, it worked.

Likely the real solution was clearing metro bundler cache on startup, anyway, android and ios pass clean locally for me now

@mikehardy
Copy link
Collaborator

I almost merged then remembered something:

I believe the last thing you need to do @russellwheatley is add the attribution? This was the last block you had but it bears examination if this is still the set of authors


    ----
    Co-authored-by: Daniel La Rocque <dlarocque@google.com>
    Co-authored-by: hsubox76 <chholland@google.com>
    Co-authored-by: Tanzim Hossain <tanzim@google.com>
    Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
    Co-authored-by: DellaBitta <DellaBitta@users.noreply.github.com>

@mikehardy mikehardy added the Workflow: Pending Merge Waiting on CI or similar label Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Workflow: Pending Merge Waiting on CI or similar

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants