Skip to content

Commit

Permalink
readme: update doc for registerVoipToken will fire cached token
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcpoiu committed Jan 15, 2021
1 parent bb5485b commit 35a4fe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ class MyComponent extends React.Component {
});

// ===== Step 4: register =====
// --- it will be no-op ( no event will be fired ) if you have subscribed before like in native side.
// --- it will be no-op if you have subscribed before (like in native side)
// --- but will fire `register` event if we have latest cahced voip token ( it may be empty if no token at all )
VoipPushNotification.registerVoipToken(); // --- register token
}

Expand Down

0 comments on commit 35a4fe0

Please sign in to comment.