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.
2 parents f24ef0d + e776e95 commit c339e3eCopy full SHA for c339e3e
android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java
@@ -387,6 +387,16 @@ public void userProvidedPrivacyConsent(Promise promise) {
387
promise.resolve(OneSignal.userProvidedPrivacyConsent());
388
}
389
390
+ @ReactMethod
391
+ public void setExternalUserId(String externalId) {
392
+ OneSignal.setExternalUserId(externalId);
393
+ }
394
+
395
396
+ public void removeExternalUserId() {
397
+ OneSignal.removeExternalUserId();
398
399
400
@Override
401
public void notificationReceived(OSNotification notification) {
402
this.sendEvent("OneSignal-remoteNotificationReceived", RNUtils.jsonToWritableMap(notification.toJSONObject()));
0 commit comments