Skip to main content

Posts

Showing posts from July, 2021

How to send email using send grid?

 I am using firebase cloud function for sendgrid email const   sgMail  =  require ( '@sendgrid/mail' ); sgMail . setApiKey ( "" );       export   function   sendEmail ( to :  any ,  subject :  any ,  text :  any ,  html :  any ) {    const   msg  = {      to :   to ,      from :   'example@email.com' ,      subject :   subject ,      text :   text ,      html :   html ,   };   ( async  ()  =>  {      try  {        await   sgMail . send ( msg );     }  catch  ( exceptions ) {        console . error ( exceptions );        return   exceptions ;     }   })(); }

PUSH NOTIFICATION IN FIREBASE NODEJS USING TOPIC

 PUSH NOTIFICATION IN FIREBASE NODE JS USING TOPIC   import   *   as   admin   from   'firebase-admin' ; import   *   as   functions   from   'firebase-functions' ; export   function   pushNotifications ( token :  string ,  title :  string ,  body :  any ) {    const   registrationToken  =  token ;    if  (! registrationToken ) {      return   null ;   }    const   message  = {      data :  {        title :   title ,        body :   body     },      token :   registrationToken   };    return   admin . messaging (). send ( message )     . then (( response )  =>  {        // Response is a message ID string.        console . log ( 'Successfully sent message:' ,  response );     })     . catch (( error )  =>  {        console . log ( 'Error sending message:' ,  error );     }); }

How can I connect my mobile to view TV without cable?

  How can I connect my mobile to view TV without cable?  1. you need a smartphone 2. supported mirracast software 3. mirracast supported smart tv 4. start sharing miracast     1. you need a smartphone:- First you need miracast supported mobile phone and with internet to share with ott media to smart tv