• Arun Kumar Patro 9
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
I am working on push notification in salesforce using Firebase (FCM) as the cloud messaging provider. But i tried with the available latest document 
ie. http://resources.docs.salesforce.com/214/5/en-us/sfdc/pdf/salesforce_mobile_push_notifications_implementation.pdf
but if didn't work as it GCM and FCM json format is different.
I tried with Http post method , so i am able to get the push notification but in order to get dynamic for that i need to get device token from mobile push registration field in user.
can anyone tell me how do i get it.User-added image
public with sharing class AccountsController 
{
	@AuraEnabled
    public static List<Account> getAccounts()
    {
        return[SELECT Id, Name, Industry , Type, NumberofEmployees, TickerSymbol, Phone FROM Account];
    }
}

 
I am working on push notification in salesforce using Firebase (FCM) as the cloud messaging provider. But i tried with the available latest document 
ie. http://resources.docs.salesforce.com/214/5/en-us/sfdc/pdf/salesforce_mobile_push_notifications_implementation.pdf
but if didn't work as it GCM and FCM json format is different.
I tried with Http post method , so i am able to get the push notification but in order to get dynamic for that i need to get device token from mobile push registration field in user.
can anyone tell me how do i get it.User-added image