मैं फायरबेस सूचनाओं को लागू करने की कोशिश कर रहा हूं। लेकिन मुझे फायरबेस सूचना से कस्टम डेटा को पुनर्प्राप्त करने के तरीके पर कोई दस्तावेज ढूंढने में परेशानी है।एंड्रॉइड फ़ायरबेस सूचना से कस्टम डेटा कैसे प्राप्त करें?
लेकिन में कस्टम कुंजी पाने के लिए कोड में।
मैं FirebaseMessagingService.onMessageReceived
उपयोग कर रहा हूँ संदेश डेटा प्राप्त करने के।
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
// TODO(developer): Handle FCM messages here.
// If the application is in the foreground handle both data and notification messages here.
// Also if you intend on generating your own notifications as a result of a received FCM
// message, here is where that should be initiated. See sendNotification method below.
Log.d(TAG, "From: " + remoteMessage.getFrom());
Log.d(TAG, "Notification Message Body: " + remoteMessage.getNotification().getBody());
}
मैं firebase उपयोग कर रहा हूँ देशी एंड्रॉयड प्रतिक्रिया में, जहां मैं पाश के लिए यह उल्लेख करना चाहिए। ... MyFirebaseMessagingService.java में? @ चिंतन सोनी – Vijay