amplitude / amplitude/Amplitude-TypeScript

[React Native] Crash reported on Amazon Kindle Fire Devices

Đang mở
#364 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
180
Fork
68
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
29

Mô tả

## Expected Behavior

App must not crash

## Current Behavior

Following crash log was reported on Amazon Kindle Fire Devices by Crashlytics:

```
Fatal Exception: java.lang.NullPointerException: getString(cr, SETTING_ADVERTISING_ID) must not be null
at com.amplitude.reactnative.AndroidContextProvider$CachedInfo.getFetchAndCacheAmazonAdvertisingId(AndroidContextProvider.java)
at com.amplitude.reactnative.AndroidContextProvider$CachedInfo.fetchAdvertisingId(AndroidContextProvider.java)
at com.amplitude.reactnative.AndroidContextProvider$CachedInfo.(AndroidContextProvider.java)
at com.amplitude.reactnative.AndroidContextProvider.getCachedInfo(AndroidContextProvider.java)
at com.amplitude.reactnative.AndroidContextProvider.getVersionName(AndroidContextProvider.java)
at com.amplitude.reactnative.AmplitudeReactNativeModule.getApplicationContext(SourceFile)
at java.lang.reflect.Method.invoke(Method.java)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(SourceFile)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(SourceFile)
at com.facebook.jni.NativeRunnable.run(SourceFile)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(SourceFile)
at android.os.Looper.loop(Looper.java:154)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(SourceFile)
at java.lang.Thread.run(Thread.java:761)
```

## Possible Solution

## Steps to Reproduce

1.
2.
3.
4.

## Environment
- JS SDK Version: `@amplitude/analytics-react-native 1.1.1`
- Installation Method: yarn
- Browser and Version: React Native, Android, Amazon Kindle Fire HD (3rd Generation)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.