Add push notifications (Pushe) + Capacitor shell for Koja
Iran-safe push for the Koja Android app (Cafe Bazaar / Myket / direct APK):
Backend
- PushDevice entity + EF migration; idempotent device register/unregister.
- IPushSender / PusheNotificationSender (Pushe REST) — SendToTopic for
marketing (city-{slug}) and saved-café (cafe-{slug}) pushes, SendToTokens
for targeted order/reservation updates.
- Public register/unregister endpoints + authorized topic broadcast.
App
- capacitor.config.ts (native WebView loads the live PWA via server.url).
- push.ts Pushe glue: topic helpers + backend device registration.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -35,6 +35,7 @@ public static class DependencyInjection
|
||||
services.AddHttpClient<ITaraPaymentGateway, TaraPaymentGateway>();
|
||||
services.AddHttpClient<ISnappfoodClient, SnappfoodClient>();
|
||||
services.AddHttpClient<ITap30Client, Tap30Client>();
|
||||
services.AddHttpClient<IPushSender, PusheNotificationSender>();
|
||||
services.AddScoped<ITarazTaxService, TarazTaxService>();
|
||||
|
||||
return services;
|
||||
|
||||
Reference in New Issue
Block a user