Search This Blog

Thursday, February 28, 2019

webrtc - samples and hacks

https://webrtchacks.com/own-phoneco-with-webrtc/


https://webrtchacks.com/baby-motion-detector/

Thursday, February 21, 2019

FCM push via ARC chrome extension

you can send push via ARC  this chrome extension 
you can do it via postman as well (https://medium.com/android-school/test-fcm-notification-with-postman-f91ba08aacc3)


POST to https://fcm.googleapis.com/fcm/send
headers:
content-type  application/json
Authorization   key=[get the key from firbase messageing)

in the body write your json  
e.g. sample 
{
                ""priority"": ""high"",
                ""time_to_live"": 86400,
                ""to"": ""{0}"",
                ""notification"": {
                                                              
                        },
                ""data"": {
                            ""title"": ""{1}"",
                            ""body"": ""{2}""  
                        ""basic"":""{3}"",
                        ""firstname"":""{4}"",
                        ""lastname"":""{5}""
                        }
            }"