Skip to content

Conversation

@olgahaha
Copy link
Contributor

@olgahaha olgahaha commented Aug 6, 2025

Hide Google login button on iOS platforms in both login and signup pages to prevent App Store rejection when Apple login is not implemented.

Hide Google login button on iOS platforms in both login and signup
pages to prevent App Store rejection when Apple login is not
implemented.
@olgahaha olgahaha requested a review from Copilot August 6, 2025 06:25

This comment was marked as outdated.

Replace Capacitor.getPlatform() with Platform.is() getter methods in
login/signup pages for better Ionic framework alignment and proper
encapsulation. Add platform detection guidelines to documentation.
@olgahaha olgahaha requested a review from Copilot August 6, 2025 06:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR hides the Google login button on iOS platforms to prevent App Store rejection when Apple login is not implemented. This addresses App Store guidelines that require apps offering third-party login options to also provide "Sign in with Apple" when available.

  • Adds platform detection using Ionic's Platform service in both login and signup pages
  • Conditionally hides Google login buttons on iOS using *ngIf="!isIOS"
  • Updates development guidelines to standardize platform detection approach

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/app/features/signup/signup.page.ts Adds Platform service injection and isIOS getter for platform detection
src/app/features/signup/signup.page.html Conditionally hides Google login button on iOS
src/app/features/login/login.page.ts Adds Platform service injection and isIOS getter for platform detection
src/app/features/login/login.page.html Conditionally hides Google login button on iOS
CLAUDE.md Documents platform detection best practice
.github/copilot-instructions.md Documents platform detection best practice

@olgahaha olgahaha merged commit b76fb25 into main Aug 6, 2025
11 checks passed
@olgahaha olgahaha deleted the fix-ios-google-login branch August 6, 2025 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants