• Mahmoud Aglan's avatar
    feat(native): sign-in with the phone's account, and real push notifications · 41052e7e
    Mahmoud Aglan authored
    For the rebuilt native app (root/el3ab-mobile):
    - api/auth.php id_token: sign in with a Google or Apple ID token from the
      phone (GoTrue grant_type=id_token), instead of a web redirect Google
      refuses inside a WebView.
    - Push through FCM HTTP v1 (includes/push.php): every notifications row is
      queued in push_outbox by a trigger, whoever wrote it (this app, the
      manager, SQL functions), and sent to the player's phones; challenges and
      chat messages queue a push of their own. Sent right after the request
      that made them (a fire-and-forget call to api/push.php dispatch) and by
      the scheduler every minute; dead tokens are dropped. api/push.php keeps
      the phones (register / unregister) and sends a test for the manager.
      The Firebase service account lives in platform_secrets (service only),
      set from the manager.
    - The web bridge reports every refreshed session to the shell, asks for the
      native sign-in when the login screen opens inside the app, routes tapped
      pushes (tournament, chat, challenge), and answers the back button. The
      CSS that hid the web tab bar for a native bar is gone.
    Co-Authored-By: 's avatarClaude Opus 5.5 <noreply@anthropic.com>
    41052e7e
Name
Last commit
Last update
..
fonts Loading commit data...
arabic-shape.php Loading commit data...
auth.php Loading commit data...
chess.php Loading commit data...
comms-hooks.php Loading commit data...
cors.php Loading commit data...
game-config.php Loading commit data...
ghost.php Loading commit data...
hand-off.php Loading commit data...
link-preview.php Loading commit data...
match-invites.php Loading commit data...
match-pool.php Loading commit data...
match-presence.php Loading commit data...
match-sweep.php Loading commit data...
orgs.php Loading commit data...
push.php Loading commit data...
redeem.php Loading commit data...
social.php Loading commit data...
supabase.php Loading commit data...
tournament-bracket.php Loading commit data...
tournament-engine.php Loading commit data...
tournament-forms.php Loading commit data...
tournament-games.php Loading commit data...
tournament-notify.php Loading commit data...
tournament-pairing.php Loading commit data...
tournament-prizes.php Loading commit data...
tournament-public.php Loading commit data...
tournament-registration.php Loading commit data...
tournament-stages.php Loading commit data...
tournament-teams.php Loading commit data...