本文介绍了更改FireFox推送消息提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的FireFox推送消息提供程序从默认的wss://push.services.mozilla.com/更改为Google Cloud Messaging所需的任何URL. (或者可能是Windows Notification Service,以更好"的为准)

I would like to change my FireFox Push Message provider from the default wss://push.services.mozilla.com/ to whatever URL is required for Google Cloud Messaging. (Or possibly Windows Notification Service, whichever is "better")

在about:config中更新dom.push.serverURL参数是否足够?如果需要,更新相应的URL是什么?

Is it sufficient to update the dom.push.serverURL parameter in about:config and, if so, what are the corresponding URLs that are required?

还可以通过javascript以编程方式完成单个页面/网络应用程序吗?

Also, can this be done programmatically via javascript for individual pages/web-apps?

干杯理查德·马哈(Richard Maher)

Cheers Richard Maher

推荐答案

推送提供商需要遵守Web推送协议,因此当前您只能使用Mozilla,甚至可以使用实验性的Google.

The push provider needs to adhere to the Web Push protocol, so currently you can only use the Mozilla one and maybe the experimental Google one.

很显然,您将无法使用Web Push标准中没有的功能.

Obviously, you won't be able to use features that aren't in the Web Push standard.

非特权JavaScript无法通过编程方式完成,您可以在插件中完成.

It can't be done programmatically by non-privileged JavaScript, you could do it in an addon.

这篇关于更改FireFox推送消息提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 08:34