How to detect running in Firebase Test Lab

后端 未结 2 1533
旧巷少年郎
旧巷少年郎 2020-12-11 16:18

I\'ve discovered a problem recently with my app\'s setup in Firebase. We have the pre-launch report configured, which means that the test lab devices are contributing a larg

2条回答
  •  渐次进展
    2020-12-11 16:49

    Your 'device under test' should check the IP address and disable analytics if in the Firebase Test Lab IP range.

    See my answer at https://stackoverflow.com/a/54954273/114549 for a Util method that handles this.

提交回复
热议问题