Skip to content

Commit

Permalink
wip notif log FCM token
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Feb 14, 2024
1 parent 13c6a02 commit 344dbb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/notification/notifTokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ import * as logging from '../utils/logging';
export const androidGetToken =
(): GlobalThunkAction<Promise<mixed>> => async (dispatch, getState) => {
try {
return await NativeModules.Notifications.getToken();
const token = await NativeModules.Notifications.getToken();
logging.info(`notif: FCM token: ${token}`);
return token;
} catch (e) {
// `getToken` failed. That happens sometimes, apparently including
// due to network errors: see #5061. In that case all will be well
Expand Down

0 comments on commit 344dbb2

Please sign in to comment.