Push notification not received on android devices

Hello,

 

I m trying to integrate your sdk on my react native app.

It's currently Ok on Ios.

 

For android device, events are sent to your platform , so the statistics are updated.

No error message available in android studio.

It seems to be fine, but when i send a push , my android devices didn't receive the notification.

 

I double check the sender Id/ key : https://support.urbanairship.com/hc/en-us/articles/213492643-GCM-FCM-Troubleshooting-Guide

There is no error into the console. 

I checked to put a wrong Firebase API key value, an error occured.

 

My device are listed in the "Android channel Ids".

The report say that alerts was sent to my devices.

 

Any idea of my mistake?

 

Thx

Didn't find what you were looking for?

New post

Comments

18 comments

  • Hi Jerome,

    Can you confirm which project you're trying to send a push on?

    I see you have the "Test" and "Beta" projects, however I noticed that your "Test" project does not have any Android devices associated to it. 

    If you're strictly testing on the "beta" project, would you be able to look in your Logcat logs and see if the push is received when the app is opened? Often times the logs will show us what's happening in the background that might give us a clue or two.

    0
  • Hellp Michael,

    I use the beta project. 

    Here the log in verbose mode when i open the application just after a push was sent

    01-08 17:39:36.318 9035-9035/com.APPLICATION.app D/APPLICATION - UALib: Analytics - New session: 3daa656e-5582-4dd2-bd7c-b6b11aad1e5c
    01-08 17:39:36.321 9035-9035/com.APPLICATION.app V/APPLICATION - UALib: Analytics - Adding event: app_foreground
    01-08 17:39:36.322 9035-9109/com.APPLICATION.app V/APPLICATION - UALib: PreferenceDataStore - Saving preference: com.urbanairship.application.metrics.LAST_OPEN value: 1546965576318
    01-08 17:39:36.327 9035-9100/com.APPLICATION.app D/APPLICATION - UALib: Automation - Updating triggers with type: 1
    01-08 17:39:36.330 9035-9102/com.APPLICATION.app D/APPLICATION - UALib: Automation - Updating triggers with type: 1
    01-08 17:39:36.346 9035-9171/com.APPLICATION.app V/APPLICATION - UALib: EventManager - Requesting to schedule event upload with delay 33191ms.
    EventManager - Scheduling upload in 33191ms.
    01-08 17:39:36.350 9035-9171/com.APPLICATION.app V/APPLICATION - UALib: AndroidJobScheduler: Scheduling jobInfo: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=33191, persistent=false} scheduleId: 3000000
    01-08 17:39:36.350 9035-9109/com.APPLICATION.app V/APPLICATION - UALib: PreferenceDataStore - Saving preference: com.urbanairship.analytics.SCHEDULED_SEND_TIME value: 1546965609537
    01-08 17:39:36.484 9035-9035/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.APPLICATION.app/com.urbanairship.job.AirshipService (has extras) }
    AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.APPLICATION.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 17:39:36.485 9035-9193/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Running job: JobInfo{action=ACTION_RICH_PUSH_MESSAGES_UPDATE, id=-1, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false}
    01-08 17:39:36.486 9035-9193/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Running job: JobInfo{action=ACTION_REFRESH, id=10, extras='{}', airshipComponentName='com.urbanairship.remotedata.RemoteData', isNetworkAccessRequired=true, initialDelay=0, persistent=false}
    01-08 17:39:36.486 9035-9103/com.APPLICATION.app I/APPLICATION - UALib: Refreshing inbox messages.
    01-08 17:39:36.487 9035-9103/com.APPLICATION.app V/APPLICATION - UALib: InboxJobHandler - Fetching inbox messages.
    01-08 17:39:36.722 9035-9103/com.APPLICATION.app V/APPLICATION - UALib: InboxJobHandler - Fetch inbox messages response: Response: ResponseBody: {
    "messages" : [ ],
    "badge" : 0
    }
    ResponseHeaders: {null=[HTTP/1.1 200 OK], Cache-Control=[no-cache, no-store, must revalidate], Connection=[keep-alive], Content-Type=[application/json;charset=utf-8], Date=[Tue, 08 Jan 2019 16:39:32 GMT], Vary=[Accept-Encoding, User-Agent], X-Android-Received-Millis=[1546965576718], X-Android-Response-Source=[NETWORK 200], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1546965576595], X-N=[S]} ResponseMessage: OK Status: 200
    01-08 17:39:36.722 9035-9103/com.APPLICATION.app I/APPLICATION - UALib: Received 0 inbox messages.
    01-08 17:39:36.733 9035-9103/com.APPLICATION.app V/APPLICATION - UALib: Job - Finished: JobInfo{action=ACTION_RICH_PUSH_MESSAGES_UPDATE, id=-1, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false} with result: 0
    01-08 17:39:36.733 9035-9193/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Component finished job with startId: 1
    01-08 17:39:37.262 9035-9199/com.APPLICATION.app I/cr_LibraryLoader: Expected native library version number "71.0.3578.99", actual native library version number "71.0.3578.99"
    01-08 17:39:37.920 9035-9194/com.APPLICATION.app D/APPLICATION - UALib: Remote data not modified since last refresh
    01-08 17:39:37.921 9035-9109/com.APPLICATION.app V/APPLICATION - UALib: PreferenceDataStore - Saving preference: com.urbanairship.remotedata.LAST_REFRESH_TIME value: 1546965577920
    01-08 17:39:37.921 9035-9194/com.APPLICATION.app V/APPLICATION - UALib: Job - Finished: JobInfo{action=ACTION_REFRESH, id=10, extras='{}', airshipComponentName='com.urbanairship.remotedata.RemoteData', isNetworkAccessRequired=true, initialDelay=0, persistent=false} with result: 0
    01-08 17:39:37.921 9035-9193/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Component finished job with startId: 2
    01-08 17:39:37.922 9035-9193/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - All jobs finished, stopping with last startId: 2
    01-08 17:39:38.721 9035-9035/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.APPLICATION.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 17:39:38.722 9035-9253/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Running job: JobInfo{action=ACTION_UPDATE_CHANNEL_REGISTRATION, id=5, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false}
    01-08 17:39:38.724 9035-9104/com.APPLICATION.app V/APPLICATION - UALib: PushManagerJobHandler - Performing channel registration.
    01-08 17:39:38.730 9035-9104/com.APPLICATION.app V/APPLICATION - UALib: PushManagerJobHandler - Channel already up to date.
    Job - Finished: JobInfo{action=ACTION_UPDATE_CHANNEL_REGISTRATION, id=5, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false} with result: 0
    01-08 17:39:38.731 9035-9253/com.APPLICATION.app V/APPLICATION - UALib: AirshipService - Component finished job with startId: 1
    AirshipService - All jobs finished, stopping with last startId: 1
    01-08 17:40:20.093 9035-9035/com.APPLICATION.app V/APPLICATION - UALib: AndroidJobService - Running job: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=33191, persistent=false}
    01-08 17:40:20.095 9035-9108/com.APPLICATION.app V/APPLICATION - UALib: AnalyticsJobHandler - Received jobInfo with action: ACTION_SEND
    01-08 17:40:20.097 9035-9109/com.APPLICATION.app V/APPLICATION - UALib: PreferenceDataStore - Saving preference: com.urbanairship.analytics.LAST_SEND value: 1546965620096
    01-08 17:40:20.142 9035-9108/com.APPLICATION.app D/APPLICATION - UALib: EventApiClient - Sending analytics events. Request: com.urbanairship.http.Request@9446a56 Events: [{"event_id":"7e434dd3-6c67-4182-bd06-c2c1d6b35a54","time":"1546965576.318","data":{"daylight_savings":false,"notification_types":["sound","vibrate"],"carrier":"","package_version":"2.3.0","connection_type":"wifi","connection_subtype":"","os_version":"8.1.0","session_id":"3daa656e-5582-4dd2-bd7c-b6b11aad1e5c","time_zone":3600,"lib_version":"9.6.0"},"type":"app_foreground"}]
    01-08 17:40:20.280 9035-9108/com.APPLICATION.app D/APPLICATION - UALib: EventApiClient - Analytics event response: Response: ResponseBody: ResponseHeaders: {null=[HTTP/1.1 200 OK], Alt-Svc=[clear], Content-Type=[application/json], Date=[Tue, 08 Jan 2019 16:40:15 GMT], Server=[Jetty(8.0.y.z-SNAPSHOT)], Transfer-Encoding=[chunked], Via=[1.1 google], X-Android-Received-Millis=[1546965620262], X-Android-Response-Source=[NETWORK 200], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1546965620153], X-UA-Max-Batch=[500], X-UA-Max-Total=[5120], X-UA-Max-Wait=[604800000], X-UA-Min-Batch-Interval=[60000]} ResponseMessage: OK Status: 200
    EventManager - Analytic events uploaded.
    01-08 17:40:20.288 9035-9108/com.APPLICATION.app V/APPLICATION - UALib: Job - Finished: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=33191, persistent=false} with result: 0

    0
  • Jerome,

    Did those logs perhaps log what your Channel Id is? Do you happen to know what your current Channel Id is?

     

    0
  • The channel id is 8a12897f-9622-41d0-b42a-c52262338b77

    0
  • Jerome,

    Okay, so your device is opted-in and it should be receiving those notifications.

    If you have the app open and running the logs at the same time you send a push, can you send over those logs?

    Also, can you make sure you haven't disabled notifications on the device level?

    0
  • Regarding the configuration on my device, everything is fine. I can receive on the same app a notification generated by firebase cloud messaging directly.

     

    You can find bellow the logs required. 

    01-08 18:42:25.796 9035-9035/com.applicationdev.app V/application-beta - UALib: AndroidJobService - Running job: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=10000, persistent=false}
    01-08 18:42:25.799 9035-9108/com.applicationdev.app V/application-beta - UALib: AnalyticsJobHandler - Received jobInfo with action: ACTION_SEND
    01-08 18:42:25.803 9035-9109/com.applicationdev.app V/application-beta - UALib: PreferenceDataStore - Saving preference: com.urbanairship.analytics.LAST_SEND value: 1546969345799
    01-08 18:42:25.835 9035-9108/com.applicationdev.app D/application-beta - UALib: EventApiClient - Sending analytics events. Request: com.urbanairship.http.Request@36f3854 Events: [{"event_id":"075d05a5-c7c7-4a02-b77f-7d43ed953b10","time":"1546969335.751","data":{"daylight_savings":false,"notification_types":["sound","vibrate"],"carrier":"","package_version":"2.3.0","connection_type":"wifi","connection_subtype":"","os_version":"8.1.0","session_id":"0524095d-4b5e-45b8-86c6-fe1d0c53febd","time_zone":3600,"lib_version":"9.6.0"},"type":"app_foreground"}]
    01-08 18:42:25.971 9035-9108/com.applicationdev.app D/application-beta - UALib: EventApiClient - Analytics event response: Response: ResponseBody: ResponseHeaders: {null=[HTTP/1.1 200 OK], Alt-Svc=[clear], Content-Type=[application/json], Date=[Tue, 08 Jan 2019 17:42:21 GMT], Server=[Jetty(8.0.y.z-SNAPSHOT)], Transfer-Encoding=[chunked], Via=[1.1 google], X-Android-Received-Millis=[1546969345958], X-Android-Response-Source=[NETWORK 200], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1546969345845], X-UA-Max-Batch=[500], X-UA-Max-Total=[5120], X-UA-Max-Wait=[604800000], X-UA-Min-Batch-Interval=[60000]} ResponseMessage: OK Status: 200
    EventManager - Analytic events uploaded.
    01-08 18:42:25.979 9035-9108/com.applicationdev.app V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=10000, persistent=false} with result: 0

    0
  • Jerome,

    Are those the full logs? It seems to be missing the logs for when the app calls takeOff. I'd like to see those to make sure there are no registration issues.

    0
  • It's the complete log I got.

    Do you have a term to search to find event associated to the takeOff?

     

     

    0
  • I regenerated the log with this method:

    - start the app

    - send the notif

    - put the app in background and foreground

     

     

    Thx

     

    ----

    01-08 18:56:48.244 28377-28427/? I/application-beta - UALib: Airship taking off!
    Airship log level: 2
    UA Version: 9.6.0 / App key = finTlarSR4-wl3b3xbHYtg Production = false
    01-08 18:56:48.244 28377-28427/? V/application-beta - UALib: !SDK-VERSION-STRING!:com.urbanairship.android:urbanairship-core:9.6.0
    01-08 18:56:48.325 28377-28427/? V/application-beta - UALib: Found provider: FCM Push Provider version: !SDK-VERSION-STRING!:com.urbanairship.android:urbanairship-fcm:9.6.0
    01-08 18:56:48.327 28377-28427/? I/application-beta - UALib: Using push provider: FCM Push Provider
    01-08 18:56:48.376 28377-28447/? V/application-beta - UALib: UALocationProvider - Attempting to connect to location adapter: com.urbanairship.location.StandardLocationAdapter@a99d2d4
    UALocationProvider - Using adapter: com.urbanairship.location.StandardLocationAdapter@a99d2d4
    01-08 18:56:48.377 28377-28377/? D/application-beta - UALib: Analytics - New session: d6e6859c-5bf4-47a5-a91e-465528b19d46
    01-08 18:56:48.381 28377-28377/? V/application-beta - UALib: Analytics - Adding event: app_foreground
    01-08 18:56:48.383 28377-28454/? V/application-beta - UALib: PreferenceDataStore - Saving preference: com.urbanairship.application.metrics.LAST_OPEN value: 1546970208376
    01-08 18:56:48.407 28377-28427/? I/application-beta - UALib: Airship ready!
    01-08 18:56:48.407 28377-28427/? D/application-beta - UALib: Autopilot - Airship ready!
    01-08 18:56:48.415 28377-28455/? D/application-beta - UALib: Automation - Updating triggers with type: 8
    01-08 18:56:48.433 28377-28460/? D/application-beta - UALib: Automation - Updating triggers with type: 8
    01-08 18:56:48.447 28377-28453/? V/application-beta - UALib: EventManager - Requesting to schedule event upload with delay 10000ms.
    EventManager - Scheduling upload in 10000ms.
    01-08 18:56:48.450 28377-28453/? V/application-beta - UALib: AndroidJobScheduler: Scheduling jobInfo: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=10000, persistent=false} scheduleId: 3000000
    01-08 18:56:48.450 28377-28454/? V/application-beta - UALib: PreferenceDataStore - Saving preference: com.urbanairship.analytics.SCHEDULED_SEND_TIME value: 1546970218447
    01-08 18:56:48.518 28377-28377/? V/application-beta - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 18:56:48.519 28377-28477/? V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_UPDATE_PUSH_REGISTRATION, id=4, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=false, initialDelay=0, persistent=false}
    01-08 18:56:48.523 28377-28377/? V/application-beta - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 18:56:48.523 28377-28477/? V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_RICH_PUSH_MESSAGES_UPDATE, id=-1, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false}
    01-08 18:56:48.523 28377-28377/? V/application-beta - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 18:56:48.524 28377-28477/? V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_UPDATE_TAG_GROUPS, id=6, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false}
    01-08 18:56:48.524 28377-28477/? V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_UPDATE_NAMED_USER, id=2, extras='{}', airshipComponentName='com.urbanairship.push.NamedUser', isNetworkAccessRequired=true, initialDelay=0, persistent=false}
    01-08 18:56:48.529 28377-28481/? I/application-beta - UALib: Refreshing inbox messages.
    01-08 18:56:48.532 28377-28481/? V/application-beta - UALib: InboxJobHandler - Fetching inbox messages.
    01-08 18:56:48.538 28377-28482/? V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_UPDATE_NAMED_USER, id=2, extras='{}', airshipComponentName='com.urbanairship.push.NamedUser', isNetworkAccessRequired=true, initialDelay=0, persistent=false} with result: 0
    01-08 18:56:48.538 28377-28477/? V/application-beta - UALib: AirshipService - Component finished job with startId: 4
    01-08 18:56:48.665 28377-28480/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
    01-08 18:56:48.666 28377-28480/? W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
    Could not find generated setter for class com.facebook.reactnative.androidsdk.FBLikeViewManager
    01-08 18:56:48.742 28377-28479/? V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_UPDATE_PUSH_REGISTRATION, id=4, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=false, initialDelay=0, persistent=false} with result: 0
    01-08 18:56:48.742 28377-28477/? V/application-beta - UALib: AirshipService - Component finished job with startId: 1
    01-08 18:56:48.742 28377-28377/? V/application-beta - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 18:56:48.743 28377-28477/? V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_UPDATE_CHANNEL_REGISTRATION, id=5, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false}
    01-08 18:56:48.743 28377-28479/? V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_UPDATE_TAG_GROUPS, id=6, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false} with result: 0
    01-08 18:56:48.744 28377-28477/? V/application-beta - UALib: AirshipService - Component finished job with startId: 3
    01-08 18:56:48.744 28377-28479/? V/application-beta - UALib: PushManagerJobHandler - Performing channel registration.
    01-08 18:56:48.747 28377-28479/? V/application-beta - UALib: PushManagerJobHandler - Channel already up to date.
    Job - Finished: JobInfo{action=ACTION_UPDATE_CHANNEL_REGISTRATION, id=5, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false} with result: 0
    01-08 18:56:48.747 28377-28477/? V/application-beta - UALib: AirshipService - Component finished job with startId: 5
    01-08 18:56:48.798 28377-28377/? I/cr_LibraryLoader: Expected native library version number "71.0.3578.99", actual native library version number "71.0.3578.99"
    01-08 18:56:48.811 28377-28481/? V/application-beta - UALib: InboxJobHandler - Fetch inbox messages response: Response: ResponseBody: {
    "messages" : [ ],
    "badge" : 0
    }
    ResponseHeaders: {null=[HTTP/1.1 200 OK], Cache-Control=[no-cache, no-store, must revalidate], Connection=[keep-alive], Content-Type=[application/json;charset=utf-8], Date=[Tue, 08 Jan 2019 17:56:44 GMT], Vary=[Accept-Encoding, User-Agent], X-Android-Received-Millis=[1546970208807], X-Android-Response-Source=[NETWORK 200], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1546970208665], X-N=[S]} ResponseMessage: OK Status: 200
    01-08 18:56:48.811 28377-28481/? I/application-beta - UALib: Received 0 inbox messages.
    01-08 18:56:48.824 28377-28481/? V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_RICH_PUSH_MESSAGES_UPDATE, id=-1, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false} with result: 0
    01-08 18:56:48.824 28377-28477/? V/application-beta - UALib: AirshipService - Component finished job with startId: 2
    01-08 18:56:48.825 28377-28477/? V/application-beta - UALib: AirshipService - All jobs finished, stopping with last startId: 5
    01-08 18:56:51.399 28377-28377/com.applicationdev.app V/application-beta - UALib: AndroidJobService - Running job: JobInfo{action=ACTION_SYNC_MESSAGE_STATE, id=9, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false}
    01-08 18:56:51.415 28377-28481/com.applicationdev.app V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_SYNC_MESSAGE_STATE, id=9, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false} with result: 0
    01-08 18:56:53.224 28377-28377/com.applicationdev.app V/application-beta - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 18:56:53.226 28377-28550/com.applicationdev.app V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_UPDATE_CHANNEL_REGISTRATION, id=5, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false}
    01-08 18:56:53.227 28377-28479/com.applicationdev.app V/application-beta - UALib: PushManagerJobHandler - Performing channel registration.
    01-08 18:56:53.231 28377-28479/com.applicationdev.app V/application-beta - UALib: PushManagerJobHandler - Channel already up to date.
    01-08 18:56:53.232 28377-28479/com.applicationdev.app V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_UPDATE_CHANNEL_REGISTRATION, id=5, extras='{}', airshipComponentName='com.urbanairship.push.PushManager', isNetworkAccessRequired=true, initialDelay=0, persistent=false} with result: 0
    01-08 18:56:53.232 28377-28550/com.applicationdev.app V/application-beta - UALib: AirshipService - Component finished job with startId: 1
    AirshipService - All jobs finished, stopping with last startId: 1
    01-08 18:56:58.475 28377-28377/com.applicationdev.app V/application-beta - UALib: AndroidJobService - Running job: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=10000, persistent=false}
    01-08 18:56:58.480 28377-28711/com.applicationdev.app V/application-beta - UALib: AnalyticsJobHandler - Received jobInfo with action: ACTION_SEND
    01-08 18:56:58.482 28377-28454/com.applicationdev.app V/application-beta - UALib: PreferenceDataStore - Saving preference: com.urbanairship.analytics.LAST_SEND value: 1546970218480
    01-08 18:56:58.510 28377-28711/com.applicationdev.app D/application-beta - UALib: EventApiClient - Sending analytics events. Request: com.urbanairship.http.Request@7078cf3 Events: [{"event_id":"ac4576b3-636b-47d4-baeb-d95d6cc5e653","time":"1546970208.376","data":{"daylight_savings":false,"notification_types":["sound","vibrate"],"carrier":"","package_version":"2.3.0","connection_type":"wifi","connection_subtype":"","os_version":"8.1.0","session_id":"d6e6859c-5bf4-47a5-a91e-465528b19d46","time_zone":3600,"lib_version":"9.6.0"},"type":"app_foreground"}, {"event_id":"5caf1c5b-fb22-40de-9018-f8daa17ab2a1","time":"1546970201.363","data":{"session_id":"163cee8a-6cee-41a6-a652-04778077722c","connection_type":"wifi","connection_subtype":""},"type":"app_background"}]
    01-08 18:56:58.707 28377-28711/com.applicationdev.app D/application-beta - UALib: EventApiClient - Analytics event response: Response: ResponseBody: ResponseHeaders: {null=[HTTP/1.1 200 OK], Alt-Svc=[clear], Content-Type=[application/json], Date=[Tue, 08 Jan 2019 17:56:53 GMT], Server=[Jetty(8.0.y.z-SNAPSHOT)], Transfer-Encoding=[chunked], Via=[1.1 google], X-Android-Received-Millis=[1546970218689], X-Android-Response-Source=[NETWORK 200], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1546970218579], X-UA-Max-Batch=[500], X-UA-Max-Total=[5120], X-UA-Max-Wait=[604800000], X-UA-Min-Batch-Interval=[60000]} ResponseMessage: OK Status: 200
    01-08 18:56:58.708 28377-28711/com.applicationdev.app D/application-beta - UALib: EventManager - Analytic events uploaded.
    01-08 18:56:58.714 28377-28711/com.applicationdev.app V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=10000, persistent=false} with result: 0
    01-08 18:57:36.191 28377-28377/com.applicationdev.app V/application-beta - UALib: Analytics - Adding event: app_background
    01-08 18:57:36.191 28377-28377/com.applicationdev.app D/application-beta - UALib: Analytics - Setting conversion send ID: null
    Analytics - Setting conversion metadata: null
    01-08 18:57:36.202 28377-28377/com.applicationdev.app V/application-beta - UALib: AndroidJobScheduler: Scheduling jobInfo: JobInfo{action=ACTION_SYNC_MESSAGE_STATE, id=9, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false} scheduleId: 3000009
    01-08 18:57:36.204 28377-28460/com.applicationdev.app D/application-beta - UALib: Automation - Updating triggers with type: 2
    01-08 18:57:36.204 28377-28455/com.applicationdev.app D/application-beta - UALib: Automation - Updating triggers with type: 2
    01-08 18:57:36.220 28377-28453/com.applicationdev.app V/application-beta - UALib: EventManager - Requesting to schedule event upload with delay 22260ms.
    EventManager - Scheduling upload in 22260ms.
    01-08 18:57:36.223 28377-28453/com.applicationdev.app V/application-beta - UALib: AndroidJobScheduler: Scheduling jobInfo: JobInfo{action=ACTION_SEND, id=0, extras='{}', airshipComponentName='com.urbanairship.analytics.Analytics', isNetworkAccessRequired=true, initialDelay=22260, persistent=false} scheduleId: 3000000
    01-08 18:57:36.224 28377-28454/com.applicationdev.app V/application-beta - UALib: PreferenceDataStore - Saving preference: com.urbanairship.analytics.SCHEDULED_SEND_TIME value: 1546970278480
    01-08 18:57:36.737 28377-28377/com.applicationdev.app D/application-beta - UALib: Analytics - New session: 83146c9b-41a7-49cf-96e5-49c1810a5f56
    01-08 18:57:36.737 28377-28377/com.applicationdev.app V/application-beta - UALib: Analytics - Adding event: app_foreground
    01-08 18:57:36.739 28377-28454/com.applicationdev.app V/application-beta - UALib: PreferenceDataStore - Saving preference: com.urbanairship.application.metrics.LAST_OPEN value: 1546970256737
    01-08 18:57:36.740 28377-28455/com.applicationdev.app D/application-beta - UALib: Automation - Updating triggers with type: 1
    01-08 18:57:36.741 28377-28460/com.applicationdev.app D/application-beta - UALib: Automation - Updating triggers with type: 1
    01-08 18:57:36.752 28377-28453/com.applicationdev.app V/application-beta - UALib: EventManager - Requesting to schedule event upload with delay 21728ms.
    EventManager - Event upload already scheduled for an earlier time.
    01-08 18:57:36.773 28377-28377/com.applicationdev.app V/application-beta - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 18:57:36.774 28377-29816/com.applicationdev.app V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_RICH_PUSH_MESSAGES_UPDATE, id=-1, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false}
    01-08 18:57:36.775 28377-28481/com.applicationdev.app I/application-beta - UALib: Refreshing inbox messages.
    01-08 18:57:36.775 28377-28481/com.applicationdev.app V/application-beta - UALib: InboxJobHandler - Fetching inbox messages.
    01-08 18:57:36.776 28377-28377/com.applicationdev.app V/application-beta - UALib: AirshipService - Received intent: Intent { act=RUN_JOB cmp=com.applicationdev.app/com.urbanairship.job.AirshipService (has extras) }
    01-08 18:57:36.776 28377-29816/com.applicationdev.app V/application-beta - UALib: AirshipService - Running job: JobInfo{action=ACTION_REFRESH, id=10, extras='{}', airshipComponentName='com.urbanairship.remotedata.RemoteData', isNetworkAccessRequired=true, initialDelay=0, persistent=false}
    01-08 18:57:36.947 28377-28481/com.applicationdev.app V/application-beta - UALib: InboxJobHandler - Fetch inbox messages response: Response: ResponseBody: {
    "messages" : [ ],
    "badge" : 0
    }
    ResponseHeaders: {null=[HTTP/1.1 200 OK], Cache-Control=[no-cache, no-store, must revalidate], Connection=[keep-alive], Content-Type=[application/json;charset=utf-8], Date=[Tue, 08 Jan 2019 17:57:32 GMT], Vary=[Accept-Encoding, User-Agent], X-Android-Received-Millis=[1546970256943], X-Android-Response-Source=[NETWORK 200], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1546970256776], X-N=[S]} ResponseMessage: OK Status: 200
    01-08 18:57:36.947 28377-28481/com.applicationdev.app I/application-beta - UALib: Received 0 inbox messages.
    01-08 18:57:36.957 28377-28481/com.applicationdev.app V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_RICH_PUSH_MESSAGES_UPDATE, id=-1, extras='{}', airshipComponentName='com.urbanairship.richpush.RichPushInbox', isNetworkAccessRequired=false, initialDelay=0, persistent=false} with result: 0
    01-08 18:57:36.957 28377-29816/com.applicationdev.app V/application-beta - UALib: AirshipService - Component finished job with startId: 1
    01-08 18:57:37.043 28377-29818/com.applicationdev.app D/application-beta - UALib: Remote data not modified since last refresh
    01-08 18:57:37.044 28377-28454/com.applicationdev.app V/application-beta - UALib: PreferenceDataStore - Saving preference: com.urbanairship.remotedata.LAST_REFRESH_TIME value: 1546970257043
    01-08 18:57:37.044 28377-29818/com.applicationdev.app V/application-beta - UALib: Job - Finished: JobInfo{action=ACTION_REFRESH, id=10, extras='{}', airshipComponentName='com.urbanairship.remotedata.RemoteData', isNetworkAccessRequired=true, initialDelay=0, persistent=false} with result: 0
    01-08 18:57:37.044 28377-29816/com.applicationdev.app V/application-beta - UALib: AirshipService - Component finished job with startId: 2
    AirshipService - All jobs finished, stopping with last startId: 2

    0
  • Jerome,

    Just to make sure, you also have turned on UserNotifications, correct?

    0
  • Yes, I set the user notification to true as defined here : https://docs.urbanairship.com/platform/react-native/#enabling-user-notifications

    (Ok on ios, which is using the same js code)

    0
  • Jerome,

    Do you have those Event Listeners set up at all? If so, do those come across in the logs for react?

    If you don't have those set up, can you implement those and see if those get hit when you send a push?

     

    0
  • I added them and i only got event from inboxUpdated when launching the application, who is according to your tuto:

    Message center updated. Unread count: 0 .  Total message count: 0

     

    Others listeners did not get any events when i send a push.

    0
  • Jerome,

    I checked our logs and I do see that we delivered those notifications successfully to Google, so they should be arriving on your devices.

    Have you been able to get this to work using our sample? 

    Additionally, do you happen to have any other modules or modules that implement push that could be interfering with the notifications being received?

    0
  • I didn't check with the sample.

    And yes, we currently use react native firebase, so the push mechanism is included and worst the dependencies are different.

    Your SDK requires firebase-core:16.0.6 and react native firebase requires firebase-core:16.0.4.

    I think that the real problem. I don't know if the cohabitation is possible. 

     

    0
  • Jerome,

    The firebase dependencies can be overridden, as noted in our Github notes here.

    We'll want to make sure though, that you're not trying to use the push solution for react and UA at the same time. Only one can be active at any time.

    For example, if you're using the React push plugin, it will only look for pushes meant for react native and will effectively ignore pushes from other providers. This may be what's happening here if you have both providers implemented. 

    0
  • Yep, I already overwritten the dependencies.

    Received push: {"extras":{"com.urbanairship.push.APID":"2e7da211-025c-4c40-a550-c0f57c18854a","com.urbanairship.push.CANONICAL_PUSH_ID":"127e768b-8490-4afc-bb99-f5e84e58cb69","com.urbanairship.in_app":"{\"actions\":{},\"display\":{\"alert\":\"test\",\"type\":\"banner\",\"position\":\"bottom\"},\"expiry\":\"2019-04-08T22:22:30\"}","com.urbanairship.push.PUSH_ID":"e3240660-1393-11e9-85c1-0242f1dd2dd8","com.urbanairship.metadata":"eyJ2ZXJzaW9uX2lkIjoxLCJ0aW1lIjoxNTQ2OTg2MTUwMzQyLCJwdXNoX2lkIjoiMTI3ZTc2OGItODQ5MC00YWZjLWJiOTktZjVlODRlNThjYjY5IiwiY2FtcGFpZ25zIjp7ImNhdGVnb3JpZXMiOltdfX0=","com.urbanairship.push.ALERT":"test"},"notificationId":"1001","alert":"test"}

     

    My mistake was located into the manifest, the firebase messaging configuration was kept.

     

    Thanks for your support

    Jérôme

     

     

    0
  • Jerome,

    Glad to hear you have it resolved!

    0

Please sign in to leave a comment.