• 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
..
ad-banner.js Loading commit data...
audio.js Loading commit data...
bus.js Loading commit data...
canvas.js Loading commit data...
config.js Loading commit data...
deeplink.js Loading commit data...
feel.js Loading commit data...
game-art.js Loading commit data...
hud.js Loading commit data...
i18n.js Loading commit data...
icons.js Loading commit data...
input.js Loading commit data...
invite-strip.js Loading commit data...
juice.js Loading commit data...
lockout.js Loading commit data...
match-live.js Loading commit data...
match-session.js Loading commit data...
match-ui.js Loading commit data...
me.js Loading commit data...
modal.js Loading commit data...
multiplayer.js Loading commit data...
native-bridge.js Loading commit data...
net.js Loading commit data...
platform-strings.js Loading commit data...
player-panel.js Loading commit data...
reactions.js Loading commit data...
realtime.js Loading commit data...
redeem-code.js Loading commit data...
scene.js Loading commit data...
store.js Loading commit data...
theme.js Loading commit data...
tournament-session.js Loading commit data...
tween.js Loading commit data...
ui.js Loading commit data...