Firebase pyfcm send push notification with an image

798
February 22, 2017, at 4:12 PM

i am trying to send push notifications using Firebase and pyfcm https://pypi.python.org/pypi/pyfcm/. But i want to know how to send a image with the notification, because searching in the parameters there are no option

this is the documentation code of pyfcm:

def notify_multiple_devices(self,
                            registration_ids=None,
                            message_body=None,
                            message_title=None,
                            message_icon=None,
                            sound=None,
                            condition=None,
                            collapse_key=None,
                            delay_while_idle=False,
                            time_to_live=None,
                            restricted_package_name=None,
                            low_priority=False,
                            dry_run=False,
                            data_message=None,
                            click_action=None,
                            badge=None,
                            color=None,
                            tag=None,
                            body_loc_key=None,
                            body_loc_args=None,
                            title_loc_key=None,
                            title_loc_args=None,
                            content_available=None,
                            extra_kwargs={}):

so which parameter i should use to send an url image??

thanks

Rent Charter Buses Company
READ ALSO
Django - global name error when authenticate with multiple database

Django - global name error when authenticate with multiple database

I have a basic app for login system, very very basic works ok, but now I'm trying to make it work with another database, at this it's not that easy as I thoughtI was reading and I found I need a db router to make it work with my second database so I tried that

489
ValueError in Python with for loop

ValueError in Python with for loop

I need to make a function that returns certain lines in a file based on a list of numbers but I keep getting ValueError: Mixing iteration and read methods would lose dataAny suggestions?

742
Pyspark centric mean and Corr for groups with unequal distribution of Data

Pyspark centric mean and Corr for groups with unequal distribution of Data

This is continuation of the question asked in linkCan some one help me on finding the centric mean at lower granularity and finding the corr at the higher granularity

490
reading data from multiple lines as a single item

reading data from multiple lines as a single item

I have a set of data from a file as such

290