firebase cloud messaging - Sending a link using push notifications in Azure for Andriod -


i have created backed in asp.net web-forms successful send notification registered devices tired send link example need send 1 push notification include link when user touch on notification redirect mobile browser , open link.

 private static async void sendnotificationasync()         {             notificationhubclient hub = notificationhubclient                 .createclientfromconnectionstring("<here endpoint >", "<hub name>");              await hub.sendgcmnativenotificationasync("{ \"data\" : {\"message\":\"hello users \"}}");          } 

based on experience, use custom json format , @ receiver end convert string url. example,here’s sample of complete json payload custom "web_link" key containing url:

 {"data": "{\"message\":\"xxxx\",\"web_link\":\"https://www.example.com\"}"} 

then override onmessage function create notification, more detail info azure document.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -