-
Notifications
You must be signed in to change notification settings - Fork 193
Crash on clearPushRegistrationId() #134
Comments
+1 for this bug, same logs and output as expressed in OP. Also +1 for the recommended solution: |
To expand on this, it seems like the It's likely, then, that the JS method signature should be: Mixpanel.clearPushRegistrationId(id?: string) and the Android method should accept an additional argument: @ReactMethod
public void clearPushRegistrationId(final String registrationId, final String apiToken, Promise promise)
final MixpanelAPI instance = getInstance(apiToken);
synchronized(instance) {
instance.getPeople().clearPushRegistrationId(registrationId);
}
promise.resolve(null);
} |
Any update? |
Any plan on fixing this? |
Hey, any update? |
Same issue here. |
any chance to merge #192? @davodesign84 |
+1 |
The method clearPushRegistrationId() is getting the following error:
RNMixpanel.clearPushRegistrationId got 2 arguments, expected 3
The reason may be because the native method expects the apiToken
But the index.js does not sends it
The solution may be simple, just add the apiToken on the method, just like most of the other methods do
return RNMixpanel.clearPushRegistrationId(this.apiToken)
The text was updated successfully, but these errors were encountered: