react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

How to use base64 for IconUrls?

Open f-r00t opened this issue 4 years ago • 1 comments

Hi, I need to use base64-icons in my app, as they are generated on the fly.

How can I pass them to the localNotification function?

    PushNotification.localNotification({
        title: message.from,
        message: message.msg,
        data: JSON.stringify(message.hash),
        largeIconUrl: get_avatar(message.from, 64),
    });

get_avatar() returns a string containing a base64-encoded png file, in this case 64x64 pixels.

However, this does not seem to work, and I cannot find anything on the subject online.

Any advice?

f-r00t avatar Jul 26 '21 21:07 f-r00t

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 27 '22 00:07 github-actions[bot]