awesome_notifications icon indicating copy to clipboard operation
awesome_notifications copied to clipboard

How to replace the value of a bigPicture with an image from a gallery album

Open wann2 opened this issue 8 months ago • 1 comments

I want to use an image obtained from a gallery album and stored in my app as the value of bigPicture. On the iPhone, I can get the image file path that copied by getApplicationDocumentsDirectory() like the below. “/var/mobile/Containers/Data/Application/3AA90493-C695-4550-921E-3BB8DD2A3/Documents/image_picker_BE105361-BD8A-4B27-BFC5-BFDDB4069246-40592-000007405472EE35trim.FB00DD1E-AEA2-4538-8799-E31263B9DB8D.jpg”

Whenever I use the above image file path as the bigPicture value of NotificationContent, the following error occurs.

PlatformException(INVALID_ARGUMENTS, bigPicture is invalid, arguments.invalid.invalid.bigPicture, null)

I hope somebody can help me to resolve it.

wann2 avatar Jun 13 '24 03:06 wann2