Reputation: 992
I am working on an android project where I need to implement Push notification msg from my own server (that I have created).
I need to implement it using WebRTC but after much exploring I have come to know that WebRTC is for voice call. Is my assumption is correct, if not where i can find some tutorials to implement Push Notification using WebRTC?
Upvotes: 2
Views: 3139
Reputation: 2937
You can use websockets to create push notifications. I wrote a tutorial for a WebRTC application where I also explain how to set up a websocket server for signaling. You can use that part of the tutorial (starting at "The Server") to share notifications and just ignore the rest of the WebRTC stuff.
Upvotes: 0
Reputation: 4225
Make sure to check out RFC6455 HTML5 WebSockets for lightweight bi-directional communication which seems to fit your use case better than WebRTC.
Upvotes: 2
Reputation: 2386
WebRTC won't help you in implementing what you are trying to achieve.
WebRTC deals with real time communications over the web, where its current main focus is voice and video.
Pure data will be added later on, but even then I doubt you will achieve the expected result with it.
The main premise of WebRTC is one where you know what 2 participants are within a connection, they already know that they are about to communicate, and then webRTC kicks in to send the actual data.
Upvotes: 2