Skip to content

Commit e1ab757

Browse files
authored
Merge pull request #1291 from torufuruya/main
Remove default callback function from `removeExternalUserId`
2 parents e2da55f + f83ea6d commit e1ab757

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ export default class OneSignal {
356356
static removeExternalUserId(handler) {
357357
if (!isObjectNonNull(RNOneSignal)) return;
358358

359-
if (handler === undefined)
359+
// Android workaround for the current issue of callback fired more than once
360+
if (handler === undefined && Platform.OS === 'ios')
360361
handler = function(){};
361362

362363
RNOneSignal.removeExternalUserId(handler);

0 commit comments

Comments
 (0)