We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11cb89b commit f52cc00Copy full SHA for f52cc00
android/src/main/java/cn/jpush/reactnativejpush/JPushModule.java
@@ -381,8 +381,7 @@ public void setStyleCustom() {
381
@ReactMethod
382
public void getRegistrationID(Callback callback) {
383
try {
384
- mContext = getCurrentActivity();
385
- String id = JPushInterface.getRegistrationID(mContext);
+ String id = JPushInterface.getRegistrationID(getReactApplicationContext());
386
if (id != null) {
387
callback.invoke(id);
388
} else {
0 commit comments