awesome_notifications
awesome_notifications copied to clipboard
How to replace the value of a bigPicture with an image from a gallery album
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.