Closed mangeshsambare closed 7 years ago
@mangeshsambare Urban Airship uses FCM/GCM to deliver the messages to the device. FCM will generally also process that data, but you need to have it configured properly uses FCM's instructions.
Urban Airship will ignore any FCM/GCM messages that are delivered with the same sender ID if it does not contain any UA keys in the payload.
So, to answer your questions:
com.urbanairship.*
Also you mentioned that you are unable to customize push notifications. Take a look at https://docs.urbanairship.com/platform/android/#customizing-push-notifications
If you need anymore help please contact support.
Hi, I have implemented two separate messaging services in my application. One is FCM service and second one is Urban Airship. I configured both receiver and service in my manifest file:
Manifest
Here is my UrbanAirshipReceiver code which consumes cloud message comes through Urban Airship :
Here is my FCMMessagingService code which consumes cloud message that comes through FCM :
I have sent data using urban-airship messaging service to device using token and application consumes data properly and gives me proper message(data) in my UrbanAirshipReceiver :
But in same case when I send message using FCM service, then my FCMMessagingService does not consume data. Before printing any log on monitor, it gives me following error
And immediately after that it shows me following messages :
Here is my code to create notification. I used my own icon for notification :
So after getting FCM message my application shows notifications on device status bar. But it shows different icon. It uses icon that is in FCM project. It does not show icon which I have set for NotificationBuilder class.
Related to that I have following question :