Skip to content
Discussion options

You must be logged in to vote

Great question! In SheShield, we faced this exact challenge while designing the emergency SOS system.

✅ Here's our current hybrid approach:

  1. Offline Triggering:

    • We save the event in IndexedDB with coordinates and timestamp.
  2. SMS Fallback:

    • We use window.open("sms:+911234567890?body=Emergency%20Help!") to launch the device’s messaging app. This works well on most mobile browsers but not on desktop.
  3. Background Sync:

    • We register a sync event in the service worker to send the event once the user comes back online.
  4. Future Scope:

    • We’re exploring a Capacitor-based shell to access native SMS APIs, which would bypass browser limitations and support full offline functionality.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ankan123basu
Comment options

ankan123basu Jul 2, 2025
Collaborator Author

Answer selected by Ankit-Basu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants