bugsnag / bugsnag-expo

MIT License
10 stars 5 forks source link

Prevent crashes on Web #185

Closed yousif-bugsnag closed 1 month ago

yousif-bugsnag commented 1 month ago

Goal

Prevent apps from crashing on web platform:

Design

Although Web isn't officially supported, this should at least prevent the app from crashing. However this means that device ids will no longer be reported on web, so user stability scores will not work.

Testing

giaset commented 1 month ago

If you want to support (at least some form of) device ID on web, I ended up doing this: https://github.com/bugsnag/bugsnag-expo/issues/183#issuecomment-2148448003

yousif-bugsnag commented 1 month ago

Hi @giaset, thanks for sharing that patch.

Seems sensible enough, however we don't currently support Expo on web, and it's not a platform we test against - so although this PR should prevent the reported crash, we won't be adding web-specific functionality to the library at this time.