技术问询:替换Firebase为HMS后,Sentry能否在NoGMS设备运行?
Absolutely, Sentry works perfectly on NoGMS devices—you don’t need Google Mobile Services to leverage its core error tracking and monitoring capabilities. Let me break down the key details for your migration scenario:
Sentry’s core functionality doesn’t depend on GMS
Sentry’s Android SDK captures crashes, errors, and performance data directly within your app, then sends this data to Sentry’s servers via standard HTTP/HTTPS requests. None of this core behavior requires GMS APIs to function. You’ll get full visibility into app issues just like you would on GMS-enabled devices.Watch for optional GMS-related dependencies
Older versions of the Sentry SDK might include optional dependencies on GMS (for example, if you were using Sentry with Firebase Cloud Messaging for alert notifications). These are not mandatory for basic error tracking. You can exclude these dependencies from your build if they’re present, or simply avoid enabling features that rely on them.HMS migration doesn’t interfere with Sentry
Since you’re replacing Firebase with HMS services, you might need to swap out any Firebase-specific Sentry integrations (like syncing with Firebase Performance Monitoring) with equivalent HMS tools if needed. But Sentry itself operates independently of both Firebase and HMS—its core features will continue to work without any changes to your Sentry setup.Test on a NoGMS device to confirm
For peace of mind, run a quick test on a NoGMS device (such as a Huawei device without GMS installed). Trigger a test crash or error in your app and verify that the event appears in your Sentry dashboard. This will confirm everything is working as expected.
内容的提问来源于stack exchange,提问作者Mr. Lit

