• 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
..
achievements.php Loading commit data...
activity.php Loading commit data...
ads.php Loading commit data...
analysis.php Loading commit data...
auth.php Loading commit data...
avatar.php Loading commit data...
backgammon-match.php Loading commit data...
battlepass.php Loading commit data...
bots.php Loading commit data...
branding.php Loading commit data...
calendar.php Loading commit data...
certificate.php Loading commit data...
challenges.php Loading commit data...
chat.php Loading commit data...
config.php Loading commit data...
cron.php Loading commit data...
daily-reward.php Loading commit data...
domino-match.php Loading commit data...
friends.php Loading commit data...
game.php Loading commit data...
groups.php Loading commit data...
leaderboard.php Loading commit data...
ludo-match.php Loading commit data...
match-chat.php Loading commit data...
match-cleanup.php Loading commit data...
match-history.php Loading commit data...
matchmaking.php Loading commit data...
notifications.php Loading commit data...
org-apply.php Loading commit data...
org-feed.php Loading commit data...
orgs.php Loading commit data...
profile.php Loading commit data...
push.php Loading commit data...
puzzles.php Loading commit data...
ratings.php Loading commit data...
redeem.php Loading commit data...
share-card.php Loading commit data...
shop.php Loading commit data...
social.php Loading commit data...
swiss.php Loading commit data...
theme.php Loading commit data...
tournament-admin.php Loading commit data...
tournament-disputes.php Loading commit data...
tournament-match.php Loading commit data...
tournaments.php Loading commit data...