Mobile AI Assistant Development Based on Gemini (Google)

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Mobile AI Assistant Development Based on Gemini (Google)
Complex
from 2 weeks to 3 months
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1054
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

AI Assistant Development in Mobile Application Based on Gemini (Google)

Gemini — only top model with native Android SDK from Google. google-ai-android (Generative AI SDK) integrates via Gradle without server proxy, simplifying start. But for production direct mobile access — mistake: API key extractable from APK. This contradiction between convenience and security needs solving at project start.

Google AI SDK: Android and iOS

On Android official path:

// build.gradle.kts
implementation("com.google.ai.client.generativeai:generativeai:0.9.0")
val model = GenerativeModel(
    modelName = "gemini-1.5-pro",
    apiKey = BuildConfig.GEMINI_API_KEY,
    generationConfig = generationConfig {
        temperature = 0.7f
        maxOutputTokens = 2048
        topK = 40
        topP = 0.95f
    },
    safetySettings = listOf(
        SafetySetting(HarmCategory.HARASSMENT, BlockThreshold.MEDIUM_AND_ABOVE)
    )
)

On iOS — GoogleGenerativeAI via Swift Package Manager. API identical, difference only in syntax.

For Flutter — google_generative_ai package covers both platforms.

Multimodality: Gemini's Native Advantage

Gemini 1.5 Pro processes text, images, audio, video and PDF in single request with context up to 1 million tokens. For mobile assistant opens scenarios unavailable to other models: pass 30-minute video and request summary, or upload meeting recording for transcription with summary.

Image transmission via Android SDK:

val image = BitmapFactory.decodeResource(resources, R.drawable.photo)
val content = content {
    image(image)
    text("Describe what's happening in this photo")
}
val response = model.generateContent(content)

Files over 20 MB must upload via File API (POST https://generativelanguage.googleapis.com/upload/v1beta/files), not pass inline base64. File API stores file 48 hours, returns file_uri used in subsequent requests.

Streaming and Native Kotlin Coroutines

Gemini Android SDK returns Flow<GenerateContentResponse> for streaming — native Kotlin coroutines integration:

viewModelScope.launch {
    model.generateContentStream(prompt).collect { chunk ->
        val text = chunk.text ?: return@collect
        _uiState.update { it + text }
    }
}

Cleaner than manual SSE parsing. On iOS similar AsyncThrowingStream<GenerateContentResponse, Error>.

Gemini vs Vertex AI: Production Choice

Google offers two paths:

  • Google AI (Gemini API) — direct access, simple start, for MVP and small apps
  • Vertex AI — enterprise option with extras: fine-tuning, corporate SLA, data not used for training, Google Cloud IAM integration

For mobile app with user data — Vertex AI with server proxy. For prototype or B2B tool without sensitive data — Gemini API sufficient.

Vertex AI SDK on Android: com.google.cloud:google-cloud-aiplatform, but requires service account authentication, implying server layer.

Safety Settings and Content Filtering

Gemini has built-in blocking system by categories: HARASSMENT, HATE_SPEECH, SEXUALLY_EXPLICIT, DANGEROUS_CONTENT. Default threshold BLOCK_MEDIUM_AND_ABOVE — quite aggressive. For medical or legal apps needing sensitive topic discussion, threshold lowered to BLOCK_ONLY_HIGH or BLOCK_NONE for specific categories.

Blocked content response returns finishReason: SAFETY, not HTTP error — must explicitly check this field, otherwise user gets empty response without explanation.

Timeline Estimates

Text assistant with native SDK — 1 week. Multimodal assistant with File API, streaming and server proxy — 3–4 weeks.