title pwa notif
This commit is contained in:
@@ -153,11 +153,11 @@ class PushSubscription(models.Model):
|
||||
|
||||
def send_notif(self, title, body, icon):
|
||||
payload = {
|
||||
"title": title,
|
||||
"title": 'فروشگاه هی ملز',
|
||||
"body": body,
|
||||
"icon": 'https://api.heymlz.com' + icon
|
||||
}
|
||||
|
||||
print(payload)
|
||||
try:
|
||||
webpush(
|
||||
subscription_info={
|
||||
@@ -176,7 +176,7 @@ class PushSubscription(models.Model):
|
||||
@classmethod
|
||||
def send_group_notification(cls, user, title, body):
|
||||
payload = {
|
||||
"title": title,
|
||||
"title": 'فروشگاه هی ملز',
|
||||
"body": body,
|
||||
"icon": ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user