# GMP support for browser push notifications using VAPID

**URL:** <https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992>\
**Category:** Hosting Support\
**Created:** [July 17, 2020, 6:59am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992 "2020-07-17T06:59:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon85785467](https://forum.infinityfree.com/letter_avatar/anon85785467/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon85785467](https://forum.infinityfree.com/u/anon85785467)\
**Post date:** [July 17, 2020, 6:59am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/1 "2020-07-17T06:59:31Z")

</div>

### Username (e.g. epiz\_XXX) or Website URL

**epiz\_25236684**

### Error Message

[WebPush] gmp extension is not loaded but is required for sending push notifications with payload or for VAPID authentication. You can fix this in your php.ini.  
**Fatal error** : Uncaught Error: Call to undefined function Minishlink\WebPush\gmp\_init() in /home/vol1\_5/epizy.com/epiz\_25236684/htdocs/vendor/minishlink/web-push/src/Encryption.php:289

### Other Information

Could you please enable GMP support on free hosting servers, it is needed for push notifications using VAPID (see [GitHub - web-push-libs/web-push-php: Web Push library for PHP](https://github.com/web-push-libs/web-push-php) )

---

<div class="post-metadata">

**Author:** ![XInterverse](https://forum.infinityfree.com/letter_avatar/xinterverse/32/5_5575768a8748004e209b776fc1b2916d.png) [@XInterverse](https://forum.infinityfree.com/u/XInterverse)\
**Post date:** [July 17, 2020, 9:19am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/2 "2020-07-17T09:19:55Z")

</div>

I’m sorry but anything that requires editing the php.ini script isn’t allowed. It contains settings from all users using the server.

---

<div class="post-metadata">

**Author:** ![anon81626513](https://forum.infinityfree.com/letter_avatar/anon81626513/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon81626513](https://forum.infinityfree.com/u/anon81626513)\
**Post date:** [July 17, 2020, 9:43am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/3 "2020-07-17T09:43:20Z")

</div>

Plus you aren’t allowed to send Push Notifications, as they are often used by spammers to bombard your computer.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 17, 2020, 5:49pm UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/4 "2020-07-17T17:49:19Z")

</div>

To my knowledge, our servers don’t support HTTP/2 yet, which means you can’t use the WebPush API which this library relies on. I don’t know if GMP was disabled before or if it was only disabled with new PHP version being deployed this week. In any case, I’m sorry to say you cannot use this functionality here.

---

<div class="post-metadata">

**Author:** ![anon85785467](https://forum.infinityfree.com/letter_avatar/anon85785467/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon85785467](https://forum.infinityfree.com/u/anon85785467)\
**Post date:** [July 17, 2020, 6:11pm UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/5 "2020-07-17T18:11:15Z")

</div>

Probably yes it was related to the upgrade, as it worked couple of days ago when I tested it, I were able to send couple of test messages

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 17, 2020, 6:58pm UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/6 "2020-07-17T18:58:30Z")

</div>

OK, in that case I will take a look and see if the extension can be restored.

---

<div class="post-metadata">

**Author:** ![anon85785467](https://forum.infinityfree.com/letter_avatar/anon85785467/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon85785467](https://forum.infinityfree.com/u/anon85785467)\
**Post date:** [July 18, 2020, 7:34am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/7 "2020-07-18T07:34:00Z")

</div>

Thanks!  
PS, about HTTP2 - maybe it is needed for websockets? I was talking about push via Google Cloud Services

---

<div class="post-metadata">

**Author:** ![anon81626513](https://forum.infinityfree.com/letter_avatar/anon81626513/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon81626513](https://forum.infinityfree.com/u/anon81626513)\
**Post date:** [July 18, 2020, 7:45am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/8 "2020-07-18T07:45:52Z")

</div>

By this is you mean **OPENING** websockets, you will not be able to, as websockets are disabled, but i’m not sure about that.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 18, 2020, 9:30am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/9 "2020-07-18T09:30:30Z")

</div>

> [@anon85785467](#):
>
> PS, about HTTP2 - maybe it is needed for websockets? I was talking about push via Google Cloud Services

If you’re using an external service to push the notifications, that should work fine. Looking at the document of the web-push-php library, it seemed to imply it used the Web Push protocol, which is based on HTTP/2. It seems to be sort-of like websockets but not quite.

But if you’re not using that part and the notifications are handled by Google, then all should be fine.

---

<div class="post-metadata">

**Author:** ![anon85785467](https://forum.infinityfree.com/letter_avatar/anon85785467/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon85785467](https://forum.infinityfree.com/u/anon85785467)\
**Post date:** [July 19, 2020, 6:57am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/10 "2020-07-19T06:57:24Z")

</div>

Thank you, the gmp seems to be enabled again and the push can be sent!

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [August 3, 2020, 6:57am UTC](https://forum.infinityfree.com/t/gmp-support-for-browser-push-notifications-using-vapid/32992/11 "2020-08-03T06:57:29Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
