php - 網頁若要可透過即時通知,是否只能通過郵件?
天蓬老师
天蓬老师 2017-04-10 17:38:06
0
2
568

因沒有涉略app 只有碰過web
想做一個手機也能收到即時通知的效果,但據我所知只能在app上實踐
唯一作法是使用phpmailer(我使用php)將通知郵件發送給客戶端,但前提是客戶端的手機必須開啟電郵通知..這樣手機上才會有notification
想請問這是否是目前唯一的方式?
有辦法就算是web,也能夠有即時效用?
例如: app例如wechat有新訊息來,客戶端當下馬上就能收到notification通知
那web呢? 除了透過phpmailer或其他郵件發送系統外,還有方式可以做到嗎?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

répondre à tous(2)
小葫芦
  1. websocket.

  2. ajax polling.

在前websocket时代,一般都是通过ajax polling来实现的动态notification功能。

巴扎黑

根据你的问题,你好像需要推送的服务,你可以尝试去看看 信鸽还有极光推送,你都可以去看看

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!