nitiphone2021 Posted July 7, 2021 Share Posted July 7, 2021 According to I create a mobile app by Flutter and I also build it to web base also. But I want to send some notify to mobile web browser to alert them come back to do sometask. I ever see it on other website but I don't know how to make it. Is it on PWA? Please guide me how can I make it like that Quote Link to comment https://forums.phpfreaks.com/topic/313053-push-notify-to-a-browser-on-mobile-phone/ Share on other sites More sharing options...
Solution requinix Posted July 7, 2021 Solution Share Posted July 7, 2021 You can do it on mobile the same way you can do it on the desktop: with AJAX polling or websockets. Polling is easier to implement but not instantaneous - which is probably fine for you. Quote Link to comment https://forums.phpfreaks.com/topic/313053-push-notify-to-a-browser-on-mobile-phone/#findComment-1587869 Share on other sites More sharing options...
nitiphone2021 Posted July 8, 2021 Author Share Posted July 8, 2021 18 hours ago, requinix said: You can do it on mobile the same way you can do it on the desktop: with AJAX polling or websockets. Polling is easier to implement but not instantaneous - which is probably fine for you. But I want to send them some notify when the user is not open the browser. How can i send to it? Quote Link to comment https://forums.phpfreaks.com/topic/313053-push-notify-to-a-browser-on-mobile-phone/#findComment-1587880 Share on other sites More sharing options...
requinix Posted July 8, 2021 Share Posted July 8, 2021 You'll need to use service workers. Quote Link to comment https://forums.phpfreaks.com/topic/313053-push-notify-to-a-browser-on-mobile-phone/#findComment-1587882 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.