Skip to content

Commit

Permalink
Merge pull request #1291 from torufuruya/main
Browse files Browse the repository at this point in the history
Remove default callback function from `removeExternalUserId`
  • Loading branch information
nan-li committed Nov 10, 2021
2 parents e2da55f + f83ea6d commit e1ab757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ export default class OneSignal {
static removeExternalUserId(handler) {
if (!isObjectNonNull(RNOneSignal)) return;

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

RNOneSignal.removeExternalUserId(handler);
Expand Down

0 comments on commit e1ab757

Please sign in to comment.