Skip to content

chore: [SDK-5763] sync demo_pods web source with demo (2/2) - #85

Merged
fadi-george merged 2 commits into
fadi/sdk-5763from
fadi/sdk-5763-pods-src
Nov 18, 2026
Merged

fadi-george merged 2 commits into
fadi/sdk-5763from
fadi/sdk-5763-pods-src

Conversation

@fadi-george

Copy link
Copy Markdown
Contributor

Description

One Line Summary

Sync demo_pods web source and Capacitor config with demo.

Details

Motivation

demo_pods/src had drifted from demo/src (no LogService / LogView), so the Appium suite failed on --pods runs.

Scope

  • Copy demo/src and capacitor.config.ts into demo_pods.
  • Add @capacitor/splash-screen, which demo already uses. Podfile and capacitor.settings.gradle come from cap sync.

Stack

  1. chore: [SDK-5763] move remaining Capacitor demos to the UIScene lifecycle (1/2) #84
  2. This PR

Testing

Manual testing

iOS 27 simulator: full Capacitor Appium suite with --pods, 36 passing. Ran with the runner fixes for the demo_pods path and workspace build applied locally (SDK-5764).

Affected code checklist

  • Notifications
    • Display
    • Open
    • Push Processing
    • Confirm Deliveries
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes

Checklist

Overview

  • I have filled out all REQUIRED sections above
  • PR does one thing
  • Any Public API changes are explained in the PR details and conform to existing APIs

Testing

  • I have included test coverage for these changes, or explained why they are not needed
  • All automated tests pass, or I explained why that is not possible
  • I have personally tested this on my device, or explained why that is not possible

Final pass

  • Code is as readable as possible.
  • I have reviewed this PR myself, ensuring it meets each checklist item

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@abdulraqeeb33 abdulraqeeb33 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sync looks complete. demo_pods/src, capacitor.config.ts, and android/capacitor.settings.gradle match demo at e9b1d47, and the splash-screen dependency, pod, and Gradle include are in place.

One edge case, same code as demo: launchAutoHide: false plus SplashScreen.hide() only after isReady means a rejected initial load() never dismisses the splash. The catch in useOneSignal.ts uses console.error and does not call setIsReady(true), so promptPush() never runs either. Set ready and log.error in that catch in both demos, or the next sync will drop a one-sided fix.

Nit: if hide() itself rejects, HomeScreen.tsx still prompts, which puts the permission dialog back on the splash.

Mark the demo ready after a failed initial load so the splash hides and the
push prompt still runs, and log the error to the in-app log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george

Copy link
Copy Markdown
Contributor Author

@abdulraqeeb33 Good catch, fixed in both demos in 64616d3. Leaving the hide() nit since that catch is there for web.

@fadi-george
fadi-george merged commit a5117fb into main Nov 18, 2026
2 checks passed
@fadi-george
fadi-george deleted the fadi/sdk-5763-pods-src branch November 18, 2026 19:31
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.

3 participants