I want to Send push notification in android and iOS phone using Ejabberd and backend is mysql. I read so many articles but not getting solution for both.
2条回答 默认 最新
- dongzhun4898 2018-02-28 05:24关注
Here are few steps that you can try to send push notification to mobile user.
- Mobile endpoint needs to be registered with ejabberd server. It means GCM/APNS token which user receives while registering with those services needs to be passed to server and server will make a entry in DB. So whenever there is event for that particular user, it will send event to stored endpoint in DB. For simplicity of implementation , I used AWS SNS service. Which sends notification to both Android and iOS devices. I used this library for that.
- Tap available hooks for raising events. For e.g. you can tap to 'user_send_packet','user_receive_packet','muc_filter_message' etc to your module and trigger GCM/APNS/SNS events as per participants involved in that. You can create your own hook to have more events as per requirement.
解决 无用评论 打赏 举报
悬赏问题
- ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
- ¥500 52810做蓝牙接受端
- ¥15 基于PLC的三轴机械手程序
- ¥15 多址通信方式的抗噪声性能和系统容量对比
- ¥15 winform的chart曲线生成时有凸起
- ¥15 msix packaging tool打包问题
- ¥15 finalshell节点的搭建代码和那个端口代码教程
- ¥15 Centos / PETSc / PETGEM
- ¥15 centos7.9 IPv6端口telnet和端口监控问题
- ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作