Closed yousif-bugsnag closed 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
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.
Goal
Prevent apps from crashing on web platform:
expo-secure-store
to get/set the device id (which causes a crash on web). This fixes the crash reported in #183.Constants.platform
(which is undefined on web) with the React Native Platform APIDesign
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