OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.57k stars 373 forks source link

Android - Notification is received and sound is heard but it is not shown on receipt #1277

Closed rexcode closed 2 years ago

rexcode commented 3 years ago

Description: Android - notification is received and sound is heard but it is not shown on receipt

Notification is visible in drawdown bar and is clickable and works well

Environment react-native version : 0.63.2 react-native-onesignal version: ^4.3.0

installed via npm

documentation link used to setup one signal https://documentation.onesignal.com/docs/react-native-sdk-setup#step-3-install-for-android-using-gradle-for-android-apps

sample code - image

image

jkasten2 commented 3 years ago

@rexcode Thanks for reporting. Could you try putting the app into the background and try sending a notification to see if the confirmed delivery shows up? Also try sending a notification while the app is in the foreground to see if you get a different result.

To debug the issue we will need the logcat from the device when you send a notification to see if OneSignal is attempting to make a network request.

MustafaAlsihati commented 3 years ago

I have the same problem, I upgraded to react-native-onesignal: 4.3.0 but problem still occur, for iOS and Android (GMS & HMS).

setNotificationWillShowInForegroundHandler not called when notification reach the device, but the notification appear on device notifications, I have to open it in order to handle it.

Same issue here #1265

rexcode commented 3 years ago

Hi @jkasten2

I have tried putting the app in foreground, background and killed the app and send notification but notification is recevied but never showed on receipt

please note following logcat - for all 3 scenarios - when app in background, foreground and when app is killed

when app is in background

2021-09-08 11:52:31.894 1811-1811/? W/adbd: timeout expired while flushing socket, closing 2021-09-08 11:52:32.896 1811-1811/? I/chatty: uid=2000(shell) /system/bin/adbd identical 1 line 2021-09-08 11:52:36.774 1811-1811/? W/adbd: timeout expired while flushing socket, closing 2021-09-08 11:52:38.980 2572-22040/? W/ChimeraUtils: Module com.google.android.gms.gcm has empty metadata display_name_string_id 2021-09-08 11:52:38.984 15015-23010/? E/memtrack: Couldn't load memtrack module 2021-09-08 11:52:38.984 15015-23010/? W/android.os.Debug: failed to get memory consumption info: -1 2021-09-08 11:52:38.984 2027-2052/? E/memtrack: Couldn't load memtrack module 2021-09-08 11:52:38.984 2027-2052/? W/android.os.Debug: failed to get memory consumption info: -1 2021-09-08 11:52:39.004 22709-22709/com.pdmc.glmetaforiki V/OneSignal: initWithContext called with: android.app.ReceiverRestrictedContext@2a97447 2021-09-08 11:52:39.004 22709-22709/com.pdmc.glmetaforiki V/OneSignal: Starting OneSignal initialization! 2021-09-08 11:52:39.005 22709-22709/com.pdmc.glmetaforiki V/OneSignal: No class found, not setting up OSRemoteNotificationReceivedHandler 2021-09-08 11:52:39.005 22709-22709/com.pdmc.glmetaforiki D/OneSignal: OneSignal SDK initialization already completed. 2021-09-08 11:52:39.016 22709-23014/com.pdmc.glmetaforiki D/OneSignal: OSNotificationWorkManager enqueueing notification work with notificationId: 534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b and jsonPayload: {"google.delivered_priority":"high","google.sent_time":1631082156317,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631082156345257%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"} 2021-09-08 11:52:39.026 22709-23015/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->add(I)Z (greylist, reflection, allowed) 2021-09-08 11:52:39.026 22709-23015/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->add(ILjava/lang/String;)Z (greylist, reflection, allowed) 2021-09-08 11:52:39.027 22709-23015/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->size()I (greylist, reflection, allowed) 2021-09-08 11:52:39.027 22709-23015/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->get(I)I (greylist, reflection, allowed) 2021-09-08 11:52:39.027 22709-23015/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->getName(I)Ljava/lang/String; (greylist, reflection, allowed) 2021-09-08 11:52:39.061 22709-22709/com.pdmc.glmetaforiki D/OneSignal: NotificationWorker running doWork with data: Data {json_payload : {"google.delivered_priority":"high","google.sent_time":1631082156317,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631082156345257%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"}, android_notif_id : 0, is_restoring : false, os_bnotification_id : 534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b, timestamp : 1631082159, } 2021-09-08 11:52:39.067 22709-22709/com.pdmc.glmetaforiki D/OneSignal: Running destroyTimeout with runnable: com.onesignal.OSNotificationReceivedEvent$1@a10c23c 2021-09-08 11:52:39.067 22709-22709/com.pdmc.glmetaforiki D/OneSignal: Running startTimeout with timeout: 25000 and runnable: com.onesignal.OSNotificationReceivedEvent$1@a10c23c 2021-09-08 11:52:39.067 22709-22709/com.pdmc.glmetaforiki W/OneSignal: remoteNotificationReceivedHandler not setup, displaying normal OneSignal notification 2021-09-08 11:52:39.067 22709-22709/com.pdmc.glmetaforiki D/OneSignal: Running destroyTimeout with runnable: com.onesignal.OSNotificationReceivedEvent$1@a10c23c 2021-09-08 11:52:39.072 22709-23020/com.pdmc.glmetaforiki D/OneSignal: Starting processJobForDisplay opened: false fromBackgroundLogic: true 2021-09-08 11:52:39.072 22709-23020/com.pdmc.glmetaforiki I/OneSignal: App is in background, show notification 2021-09-08 11:52:39.274 22709-23020/com.pdmc.glmetaforiki D/OneSignal: Saving Notification job: OSNotificationGenerationJob{jsonPayload={"google.delivered_priority":"high","google.sent_time":1631082156317,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631082156345257%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"}, isRestoring=false, shownTimeStamp=1631082159, overriddenBodyFromExtender=null, overriddenTitleFromExtender=null, overriddenSound=null, overriddenFlags=null, orgFlags=null, orgSound=null, notification=OSNotification{notificationExtender=null, groupedNotifications=null, androidNotificationId=-1434893230, notificationId='534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b', templateName='', templateId='', title='TEST', body='TEST', additionalData={"Name":"V"}, smallIcon='null', largeIcon='null', bigPicture='https://cdn.pixabay.com/photo/2018/01/21/01/46/architecture-3095716_960_720.jpg', smallIconAccentColor='null', launchURL='null', sound='null', ledColor='null', lockScreenVisibility=1, groupKey='null', groupMessage='null', actionButtons=null, fromProjectNumber='620671468918', backgroundImageLayout=null, collapseId='null', priority=10, rawPayload='{"google.delivered_priority":"high","google.sent_time":1631082156317,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631082156345257%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"}'}} 2021-09-08 11:52:39.298 22709-23020/com.pdmc.glmetaforiki D/OneSignal: Notification saved values: full_data={"google.delivered_priority":"high","google.sent_time":1631082156317,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631082156345257%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"} notification_id=534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b android_notification_id=-1434893230 opened=0 expire_time=1631341356 title=TEST message=TEST 2021-09-08 11:52:39.302 22709-23020/com.pdmc.glmetaforiki D/OneSignal: sendReceiveReceipt disable 2021-09-08 11:52:39.302 22709-23020/com.pdmc.glmetaforiki D/OneSignal: Receive receipt ending with success callback completer: androidx.concurrent.futures.CallbackToFutureAdapter$Completer@e8b0958 2021-09-08 11:52:39.303 22709-23020/com.pdmc.glmetaforiki D/OneSignal: OneSignal SessionManager onNotificationReceived notificationId: 534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b 2021-09-08 11:52:39.303 22709-23020/com.pdmc.glmetaforiki D/OneSignal: OneSignal OSChannelTracker for: notification_id saveLastId: 534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b 2021-09-08 11:52:39.303 22709-23020/com.pdmc.glmetaforiki D/OneSignal: OneSignal OSChannelTracker for: notification_id saveLastId with lastChannelObjectsReceived: [] 2021-09-08 11:52:39.303 22709-23020/com.pdmc.glmetaforiki D/OneSignal: OneSignal OSChannelTracker for: notification_id with channelObjectToSave: [{"notification_id":"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b","time":1631082159303}] 2021-09-08 11:52:39.304 22709-22759/com.pdmc.glmetaforiki I/WM-WorkerWrapper: Worker result SUCCESS for Work [ id=990c3616-8e2b-4d54-b40c-aaa6c25eb429, tags={ com.onesignal.OSNotificationWorkManager$NotificationWorker } ] 2021-09-08 11:52:39.305 22709-23020/com.pdmc.glmetaforiki D/OneSignal: Running destroyTimeout with runnable: com.onesignal.OSNotificationOpenedResult$1@1bfab1 2021-09-08 11:52:39.305 22709-23020/com.pdmc.glmetaforiki D/OneSignal: Running startTimeout with timeout: 5000 and runnable: com.onesignal.OSNotificationOpenedResult$1@1bfab1 2021-09-08 11:52:39.384 1826-14999/? D/NuPlayerDriver: NuPlayerDriver(0xf5222a00) created, clientPid(2174) 2021-09-08 11:52:39.390 1826-14999/? I/Codec2Client: Creating a Codec2 client to service "software" 2021-09-08 11:52:39.390 1826-14999/? I/Codec2Client: Client to Codec2 service "software" created 2021-09-08 11:52:39.397 1826-23027/? D/GenericSource: FileSource remote 2021-09-08 11:52:39.426 2027-4378/? I/MediaFocusControl: requestAudioFocus() from uid/pid 10102/2174 clientId=android.media.AudioManager@f5f377f callingPack=com.android.systemui req=3 flags=0x0 sdk=29 2021-09-08 11:52:39.456 2174-2500/? D/EGL_emulation: eglMakeCurrent: 0x759690264260: ver 2 0 (tinfo 0x7596902f56a0) 2021-09-08 11:52:39.878 2027-23022/? E/VibratorService: vibratorOff command failed (1). 2021-09-08 11:52:39.885 2027-23030/? E/VibratorService: vibratorOn command failed (1). 2021-09-08 11:52:39.933 1826-23026/? I/GenericSource: start 2021-09-08 11:52:39.934 2174-2174/? V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null } 2021-09-08 11:52:39.947 1826-23033/? I/OMXClient: IOmx service obtained 2021-09-08 11:52:39.948 1831-2315/? I/OMXMaster: makeComponentInstance(OMX.google.vorbis.decoder) in android.hardwar process 2021-09-08 11:52:39.950 1831-2315/? E/OMXNodeInstance: setConfig(0xe5e42180:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 2021-09-08 11:52:39.951 1826-23033/? I/ACodec: codec does not support config priority (err -2147483648) 2021-09-08 11:52:39.952 1831-2315/? E/OMXNodeInstance: getConfig(0xe5e42180:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001) 2021-09-08 11:52:39.954 1826-23033/? I/MediaCodec: MediaCodec will operate in async mode 2021-09-08 11:52:39.976 1805-2914/? D/AudioFlinger: Client defaulted notificationFrames to 12064 for frameCount 24129 2021-09-08 11:52:39.977 1805-2914/? D/AF::TrackHandle: OpPlayAudio: track:81 usage:5 not muted 2021-09-08 11:52:39.985 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 30204543 , only wrote 30204395 2021-09-08 11:52:40.008 1826-23031/? D/AudioTrack: getTimestamp_l(34): device stall time corrected using current time 65749630341100 2021-09-08 11:52:40.126 2027-2124/? I/InputReader: Reconfiguring input devices. changes=0x00000010 2021-09-08 11:52:40.147 2572-23038/? I/Fitness: OnPackageChangedOperation got intent: Intent { act=android.intent.action.PACKAGE_CHANGED dat=package:com.pdmc.glmetaforiki flg=0x45000010 pkg=com.google.android.gms cmp=com.google.android.gms/.chimera.PersistentIntentOperationService (has extras) } [CONTEXT service_id=17 ]

--------- beginning of system

2021-09-08 11:52:40.149 2027-2027/? I/Telecom: DefaultDialerCache: Refreshing default dialer for user 0: now com.android.dialer: DDC.oR@AQs 2021-09-08 11:52:40.157 2270-2270/? D/CarrierSvcBindHelper: No carrier app for: 0 2021-09-08 11:52:40.224 1805-1998/? D/AF::Track: interceptBuffer: took 621us to intercept 0 tracks 2021-09-08 11:52:40.227 15015-15119/? I/Icing: IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=36 2021-09-08 11:52:40.229 22526-22629/? I/ProvidersCache: Provider returned no roots. Possibly naughty: com.google.android.apps.docs.storage 2021-09-08 11:52:40.230 2572-23046/? I/Fitness: FitCleanupIntentOperation received Intent android.intent.action.PACKAGE_CHANGED [CONTEXT service_id=17 ] 2021-09-08 11:52:40.231 2572-2635/? E/BluetoothAdapter: Bluetooth binder is null 2021-09-08 11:52:40.241 2572-2635/? W/ChimeraUtils: Module com.google.android.gms.nearby_en has empty metadata display_name_string_id 2021-09-08 11:52:40.242 2572-2635/? W/ChimeraUtils: Module com.google.android.gms.nearby_en has empty metadata display_name_string_id 2021-09-08 11:52:40.261 2572-2583/? I/.gms.persisten: Background concurrent copying GC freed 110919(5510KB) AllocSpace objects, 0(0B) LOS objects, 37% free, 10MB/16MB, paused 438us total 150.339ms 2021-09-08 11:52:40.278 15015-19505/? W/Icing: No valid account for uploading user actions

when app is killed

--------- beginning of main

2021-09-08 12:01:22.127 2027-2052/? E/memtrack: Couldn't load memtrack module 2021-09-08 12:01:22.127 2027-2052/? W/android.os.Debug: failed to get memory consumption info: -1 2021-09-08 12:01:23.595 15015-15015/? D/BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.feedback.internal.IFeedbackService cmp=com.google.android.gms/.chimera.GmsBoundBrokerService } 2021-09-08 12:01:23.618 2572-2572/? D/BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.icing.LIGHTWEIGHT_INDEX_SERVICE cmp=com.google.android.gms/.chimera.PersistentApiService } 2021-09-08 12:01:28.806 2572-22040/? W/ChimeraUtils: Module com.google.android.gms.gcm has empty metadata display_name_string_id 2021-09-08 12:01:28.864 23074-23074/com.pdmc.glmetaforiki W/OneSignal: remoteNotificationReceivedHandler not setup, displaying normal OneSignal notification 2021-09-08 12:01:28.988 2407-2418/? W/id.ext.service: Reducing the number of considered missed Gc histogram windows from 113 to 100 2021-09-08 12:01:28.993 23074-23113/com.pdmc.glmetaforiki I/WM-WorkerWrapper: Worker result SUCCESS for Work [ id=4a887c79-2116-470c-8e24-3d516ea38586, tags={ com.onesignal.OSNotificationWorkManager$NotificationWorker } ] 2021-09-08 12:01:29.121 1826-14999/? D/NuPlayerDriver: NuPlayerDriver(0xf5222a00) created, clientPid(2174) 2021-09-08 12:01:29.123 1826-14999/? I/Codec2Client: Creating a Codec2 client to service "software" 2021-09-08 12:01:29.126 1826-14999/? I/Codec2Client: Client to Codec2 service "software" created

when app is in foreground

2021-09-08 12:12:41.078 2572-23583/? E/memtrack: Couldn't load memtrack module 2021-09-08 12:12:41.079 2572-23583/? W/android.os.Debug: failed to get memory consumption info: -1 2021-09-08 12:12:47.764 2572-22040/? W/ChimeraUtils: Module com.google.android.gms.gcm has empty metadata display_name_string_id

--------- beginning of system

2021-09-08 12:12:47.768 2027-4676/? I/ActivityManager: Killing 22526:com.android.documentsui/u0a50 (adj 945): empty for 1813s 2021-09-08 12:12:47.768 2027-4676/? I/ActivityManager: Killing 22459:com.android.chrome/u0a113 (adj 955): empty for 1813s 2021-09-08 12:12:47.768 2027-4676/? I/ActivityManager: Killing 22466:com.android.keychain/1000 (adj 955): empty for 1813s 2021-09-08 12:12:47.769 2027-2052/? E/memtrack: Couldn't load memtrack module 2021-09-08 12:12:47.769 2027-2052/? W/android.os.Debug: failed to get memory consumption info: -1 2021-09-08 12:12:47.802 23433-23433/com.pdmc.glmetaforiki V/OneSignal: initWithContext called with: android.app.ReceiverRestrictedContext@8068a0a 2021-09-08 12:12:47.802 23433-23433/com.pdmc.glmetaforiki V/OneSignal: Starting OneSignal initialization! 2021-09-08 12:12:47.803 23433-23433/com.pdmc.glmetaforiki V/OneSignal: No class found, not setting up OSRemoteNotificationReceivedHandler 2021-09-08 12:12:47.804 23433-23433/com.pdmc.glmetaforiki D/OneSignal: OneSignal SDK initialization already completed. 2021-09-08 12:12:47.833 1767-1767/? I/Zygote: Process 22466 exited due to signal 9 (Killed) 2021-09-08 12:12:47.835 23433-23584/com.pdmc.glmetaforiki D/OneSignal: OSNotificationWorkManager enqueueing notification work with notificationId: 51f32d77-72de-4c9f-9557-8ea682011a47 and jsonPayload: {"google.delivered_priority":"high","google.sent_time":1631083365114,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"51f32d77-72de-4c9f-9557-8ea682011a47\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631083365139368%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"} 2021-09-08 12:12:47.849 1768-1768/? I/Zygote: Process 22459 exited due to signal 9 (Killed) 2021-09-08 12:12:47.863 23433-23585/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->add(I)Z (greylist, reflection, allowed) 2021-09-08 12:12:47.863 23433-23585/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->add(ILjava/lang/String;)Z (greylist, reflection, allowed) 2021-09-08 12:12:47.864 23433-23585/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->size()I (greylist, reflection, allowed) 2021-09-08 12:12:47.864 23433-23585/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->get(I)I (greylist, reflection, allowed) 2021-09-08 12:12:47.864 23433-23585/com.pdmc.glmetaforiki W/mc.glmetaforik: Accessing hidden method Landroid/os/WorkSource;->getName(I)Ljava/lang/String; (greylist, reflection, allowed) 2021-09-08 12:12:47.869 1767-1767/? I/Zygote: Process 22526 exited due to signal 9 (Killed) 2021-09-08 12:12:47.890 2027-2055/? I/libprocessgroup: Successfully killed process cgroup uid 10050 pid 22526 in 121ms 2021-09-08 12:12:47.891 2027-2055/? I/libprocessgroup: Successfully killed process cgroup uid 10113 pid 22459 in 0ms 2021-09-08 12:12:47.892 2027-2055/? I/libprocessgroup: Successfully killed process cgroup uid 1000 pid 22466 in 0ms 2021-09-08 12:12:47.907 23433-23512/com.pdmc.glmetaforiki W/OneSignal: Location permission exists but GoogleApiClient timed out. Maybe related to mismatch google-play aar versions. 2021-09-08 12:12:47.913 23433-23512/com.pdmc.glmetaforiki D/OneSignal: registerUser:registerForPushFired:true, locationFired: true, remoteParams: com.onesignal.OneSignalRemoteParams$2@40687f3, appId: 94d9efe1-7b6d-429c-adb3-9de4f0390ef7 2021-09-08 12:12:47.914 23433-23512/com.pdmc.glmetaforiki D/OneSignal: LocationController scheduleUpdate lastTime: 0 minTime: 600000 2021-09-08 12:12:47.915 23433-23512/com.pdmc.glmetaforiki V/OneSignal: OSSyncService scheduleLocationUpdateTask:delayMs: 600000 2021-09-08 12:12:47.915 23433-23512/com.pdmc.glmetaforiki V/OneSignal: OSSyncService scheduleSyncTask already update scheduled nextScheduledSyncTimeMs: 1631083368024 2021-09-08 12:12:47.945 23433-23590/com.pdmc.glmetaforiki D/OneSignal: registerUserTask calling readyToUpdate 2021-09-08 12:12:47.959 23433-23433/com.pdmc.glmetaforiki D/OneSignal: NotificationWorker running doWork with data: Data {json_payload : {"google.delivered_priority":"high","google.sent_time":1631083365114,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"51f32d77-72de-4c9f-9557-8ea682011a47\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631083365139368%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"}, android_notif_id : 0, is_restoring : false, os_bnotification_id : 51f32d77-72de-4c9f-9557-8ea682011a47, timestamp : 1631083367, } 2021-09-08 12:12:47.971 23433-23433/com.pdmc.glmetaforiki D/OneSignal: Running destroyTimeout with runnable: com.onesignal.OSNotificationReceivedEvent$1@875015e 2021-09-08 12:12:47.971 23433-23433/com.pdmc.glmetaforiki D/OneSignal: Running startTimeout with timeout: 25000 and runnable: com.onesignal.OSNotificationReceivedEvent$1@875015e 2021-09-08 12:12:47.971 23433-23433/com.pdmc.glmetaforiki W/OneSignal: remoteNotificationReceivedHandler not setup, displaying normal OneSignal notification 2021-09-08 12:12:47.971 23433-23433/com.pdmc.glmetaforiki D/OneSignal: Running destroyTimeout with runnable: com.onesignal.OSNotificationReceivedEvent$1@875015e 2021-09-08 12:12:47.976 23433-23592/com.pdmc.glmetaforiki D/OneSignal: Starting processJobForDisplay opened: false fromBackgroundLogic: true 2021-09-08 12:12:47.976 23433-23592/com.pdmc.glmetaforiki I/OneSignal: App is in background, show notification 2021-09-08 12:12:48.037 23433-23433/com.pdmc.glmetaforiki D/OneSignal: OSBackground sync, calling initWithContext 2021-09-08 12:12:48.167 23433-23433/com.pdmc.glmetaforiki V/OneSignal: initWithContext called with: com.onesignal.SyncJobService@9a52755 2021-09-08 12:12:48.167 23433-23433/com.pdmc.glmetaforiki V/OneSignal: Starting OneSignal initialization! 2021-09-08 12:12:48.191 23433-23433/com.pdmc.glmetaforiki V/OneSignal: No class found, not setting up OSRemoteNotificationReceivedHandler 2021-09-08 12:12:48.191 23433-23433/com.pdmc.glmetaforiki D/OneSignal: OneSignal SDK initialization already completed. 2021-09-08 12:12:48.298 23433-23594/com.pdmc.glmetaforiki D/OneSignal: LocationController sendAndClearPromptHandlers from non prompt flow 2021-09-08 12:12:48.298 23433-23594/com.pdmc.glmetaforiki D/OneSignal: LocationController startGetLocation with lastLocation: null 2021-09-08 12:12:48.326 23433-23513/com.pdmc.glmetaforiki D/OneSignal: GMSLocationController GoogleApiClientListener onConnected lastLocation: null 2021-09-08 12:12:48.346 2572-3190/? W/GCoreFlp: No location to return for getLastLocation() 2021-09-08 12:12:48.347 23433-23513/com.pdmc.glmetaforiki D/OneSignal: GMSLocationController GoogleApiClientListener lastLocation: null 2021-09-08 12:12:48.347 23433-23513/com.pdmc.glmetaforiki D/OneSignal: GMSLocationController GoogleApiClient requestLocationUpdates! 2021-09-08 12:12:48.372 2572-3190/? W/GCoreFlp: No location to return for getLastLocation() 2021-09-08 12:12:48.416 23433-23592/com.pdmc.glmetaforiki D/OneSignal: Saving Notification job: OSNotificationGenerationJob{jsonPayload={"google.delivered_priority":"high","google.sent_time":1631083365114,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"51f32d77-72de-4c9f-9557-8ea682011a47\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631083365139368%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"}, isRestoring=false, shownTimeStamp=1631083367, overriddenBodyFromExtender=null, overriddenTitleFromExtender=null, overriddenSound=null, overriddenFlags=null, orgFlags=null, orgSound=null, notification=OSNotification{notificationExtender=null, groupedNotifications=null, androidNotificationId=933108402, notificationId='51f32d77-72de-4c9f-9557-8ea682011a47', templateName='', templateId='', title='TEST', body='TEST', additionalData={"Name":"V"}, smallIcon='null', largeIcon='null', bigPicture='https://cdn.pixabay.com/photo/2018/01/21/01/46/architecture-3095716_960_720.jpg', smallIconAccentColor='null', launchURL='null', sound='null', ledColor='null', lockScreenVisibility=1, groupKey='null', groupMessage='null', actionButtons=null, fromProjectNumber='620671468918', backgroundImageLayout=null, collapseId='null', priority=10, rawPayload='{"google.delivered_priority":"high","google.sent_time":1631083365114,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"51f32d77-72de-4c9f-9557-8ea682011a47\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631083365139368%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"}'}} 2021-09-08 12:12:48.444 23433-23592/com.pdmc.glmetaforiki D/OneSignal: Notification saved values: full_data={"google.delivered_priority":"high","google.sent_time":1631083365114,"google.ttl":259200,"google.original_priority":"high","custom":"{\"a\":{\"Name\":\"V\"},\"i\":\"51f32d77-72de-4c9f-9557-8ea682011a47\"}","pri":"10","vis":"1","from":"620671468918","alert":"TEST","bicon":"https:\/\/cdn.pixabay.com\/photo\/2018\/01\/21\/01\/46\/architecture-3095716_960_720.jpg","title":"TEST","google.message_id":"0:1631083365139368%4cfbecbff9fd7ecd","google.c.sender.id":"620671468918"} notification_id=51f32d77-72de-4c9f-9557-8ea682011a47 android_notification_id=933108402 opened=0 expire_time=1631342565 title=TEST message=TEST 2021-09-08 12:12:48.447 23433-23592/com.pdmc.glmetaforiki D/OneSignal: sendReceiveReceipt disable 2021-09-08 12:12:48.448 23433-23592/com.pdmc.glmetaforiki D/OneSignal: Receive receipt ending with success callback completer: androidx.concurrent.futures.CallbackToFutureAdapter$Completer@b74bdc3 2021-09-08 12:12:48.449 23433-23592/com.pdmc.glmetaforiki D/OneSignal: OneSignal SessionManager onNotificationReceived notificationId: 51f32d77-72de-4c9f-9557-8ea682011a47 2021-09-08 12:12:48.450 23433-23472/com.pdmc.glmetaforiki I/WM-WorkerWrapper: Worker result SUCCESS for Work [ id=76510e26-ad47-4733-bc62-fdfdaff57630, tags={ com.onesignal.OSNotificationWorkManager$NotificationWorker } ] 2021-09-08 12:12:48.450 23433-23592/com.pdmc.glmetaforiki D/OneSignal: OneSignal OSChannelTracker for: notification_id saveLastId: 51f32d77-72de-4c9f-9557-8ea682011a47 2021-09-08 12:12:48.456 23433-23592/com.pdmc.glmetaforiki D/OneSignal: OneSignal OSChannelTracker for: notification_id saveLastId with lastChannelObjectsReceived: [{"notification_id":"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b","time":1631082159303},{"notification_id":"81e5ab2b-d8db-4561-a285-e684a71af13f","time":1631082667445},{"notification_id":"86c2e0f7-4ab1-42bf-a929-211efb850670","time":1631082688992}] 2021-09-08 12:12:48.456 23433-23592/com.pdmc.glmetaforiki D/OneSignal: OneSignal OSChannelTracker for: notification_id with channelObjectToSave: [{"notification_id":"534d1fc9-09ae-48c5-b1fe-1dd1bfabc44b","time":1631082159303},{"notification_id":"81e5ab2b-d8db-4561-a285-e684a71af13f","time":1631082667445},{"notification_id":"86c2e0f7-4ab1-42bf-a929-211efb850670","time":1631082688992},{"notification_id":"51f32d77-72de-4c9f-9557-8ea682011a47","time":1631083368456}] 2021-09-08 12:12:48.460 23433-23592/com.pdmc.glmetaforiki D/OneSignal: Running destroyTimeout with runnable: com.onesignal.OSNotificationOpenedResult$1@a586640 2021-09-08 12:12:48.460 23433-23592/com.pdmc.glmetaforiki D/OneSignal: Running startTimeout with timeout: 5000 and runnable: com.onesignal.OSNotificationOpenedResult$1@a586640 2021-09-08 12:12:48.524 1826-14999/? D/NuPlayerDriver: NuPlayerDriver(0xf0734a80) created, clientPid(2174) 2021-09-08 12:12:48.525 1826-14999/? I/Codec2Client: Creating a Codec2 client to service "software" 2021-09-08 12:12:48.526 1826-14999/? I/Codec2Client: Client to Codec2 service "software" created 2021-09-08 12:12:48.537 1826-23601/? D/GenericSource: FileSource remote 2021-09-08 12:12:48.549 2027-4402/? I/MediaFocusControl: requestAudioFocus() from uid/pid 10102/2174 clientId=android.media.AudioManager@3a4cd4f callingPack=com.android.systemui req=3 flags=0x0 sdk=29 2021-09-08 12:12:48.573 2174-2500/? D/EGL_emulation: eglMakeCurrent: 0x759690264260: ver 2 0 (tinfo 0x7596902f56a0) 2021-09-08 12:12:48.961 2027-2124/? I/InputReader: Reconfiguring input devices. changes=0x00000010 2021-09-08 12:12:49.001 2572-23605/? I/Fitness: OnPackageChangedOperation got intent: Intent { act=android.intent.action.PACKAGE_CHANGED dat=package:com.pdmc.glmetaforiki flg=0x45000010 pkg=com.google.android.gms cmp=com.google.android.gms/.chimera.PersistentIntentOperationService (has extras) } [CONTEXT service_id=17 ] 2021-09-08 12:12:49.029 2027-23597/? E/VibratorService: vibratorOff command failed (1). 2021-09-08 12:12:49.033 2027-23618/? E/VibratorService: vibratorOn command failed (1). 2021-09-08 12:12:49.033 2027-2027/? I/Telecom: DefaultDialerCache: Refreshing default dialer for user 0: now com.android.dialer: DDC.oR@AQ8 2021-09-08 12:12:49.048 2572-23613/? I/Fitness: FitCleanupIntentOperation received Intent android.intent.action.PACKAGE_CHANGED [CONTEXT service_id=17 ] 2021-09-08 12:12:49.052 1826-23600/? I/GenericSource: start 2021-09-08 12:12:49.054 2174-2174/? V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null } 2021-09-08 12:12:49.057 2572-12601/? E/BluetoothAdapter: Bluetooth binder is null 2021-09-08 12:12:49.058 2270-2270/? D/CarrierSvcBindHelper: No carrier app for: 0 2021-09-08 12:12:49.060 1826-23621/? I/OMXClient: IOmx service obtained 2021-09-08 12:12:49.060 1831-1973/? I/OMXMaster: makeComponentInstance(OMX.google.vorbis.decoder) in android.hardwar process 2021-09-08 12:12:49.066 1831-1973/? E/OMXNodeInstance: setConfig(0xe5e42180:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 2021-09-08 12:12:49.066 1826-23621/? I/ACodec: codec does not support config priority (err -2147483648) 2021-09-08 12:12:49.067 1831-1831/? E/OMXNodeInstance: getConfig(0xe5e42180:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001) 2021-09-08 12:12:49.067 2572-12601/? W/ChimeraUtils: Module com.google.android.gms.nearby_en has empty metadata display_name_string_id 2021-09-08 12:12:49.068 2572-12601/? W/ChimeraUtils: Module com.google.android.gms.nearby_en has empty metadata display_name_string_id 2021-09-08 12:12:49.070 1826-23621/? I/MediaCodec: MediaCodec will operate in async mode 2021-09-08 12:12:49.097 1805-2914/? D/AudioFlinger: Client defaulted notificationFrames to 12064 for frameCount 24129 2021-09-08 12:12:49.100 1805-2914/? D/AF::TrackHandle: OpPlayAudio: track:84 usage:5 not muted 2021-09-08 12:12:49.105 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31351901 , only wrote 31351891 2021-09-08 12:12:49.127 15015-15119/? I/Icing: IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=36 2021-09-08 12:12:49.130 1826-23619/? D/AudioTrack: getTimestamp_l(37): device stall time corrected using current time 66958752353200 2021-09-08 12:12:49.178 15015-15295/? W/Icing: No valid account for uploading user actions 2021-09-08 12:12:49.195 2572-2572/? D/BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.icing.LIGHTWEIGHT_INDEX_SERVICE cmp=com.google.android.gms/.chimera.PersistentApiService } 2021-09-08 12:12:49.195 2572-2572/? D/BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.icing.LIGHTWEIGHT_INDEX_SERVICE cmp=com.google.android.gms/.chimera.PersistentApiService } 2021-09-08 12:12:49.202 15015-15015/? D/BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.feedback.internal.IFeedbackService cmp=com.google.android.gms/.chimera.GmsBoundBrokerService } 2021-09-08 12:12:49.202 15015-15015/? D/BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.feedback.internal.IFeedbackService cmp=com.google.android.gms/.chimera.GmsBoundBrokerService } 2021-09-08 12:12:49.230 15015-15295/? I/Icing: Usage reports ok 1, Failed Usage reports 0, indexed 0, rejected 0 2021-09-08 12:12:49.232 15015-15122/? I/Icing: IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=null serviceId=30 2021-09-08 12:12:49.240 15015-15295/? I/Icing: Indexing com.google.android.gms-apps from com.google.android.gms 2021-09-08 12:12:49.253 15015-15295/? W/Icing: No valid account for uploading user actions 2021-09-08 12:12:49.261 15015-15295/? I/Icing: Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0 2021-09-08 12:12:49.272 15015-15295/? I/Icing: Indexing done com.google.android.gms-apps 2021-09-08 12:12:49.600 1805-1998/? D/AF::Track: interceptBuffer: took 2399us to intercept 0 tracks 2021-09-08 12:12:49.635 2027-23618/? E/VibratorService: vibratorOn command failed (1). 2021-09-08 12:12:49.816 1865-1865/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument 2021-09-08 12:12:49.986 2027-23618/? E/VibratorService: vibratorOff command failed (1). 2021-09-08 12:12:50.489 1826-23619/? D/AudioTrack: stop(37): called with 82980 frames delivered 2021-09-08 12:12:50.979 2027-4569/? I/MediaFocusControl: abandonAudioFocus() from uid/pid 10102/2174 clientId=android.media.AudioManager@3a4cd4f 2021-09-08 12:12:50.982 2174-23598/? V/MediaPlayer: resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false 2021-09-08 12:12:50.982 2174-23598/? V/MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null 2021-09-08 12:12:50.982 1826-14999/? D/NuPlayerDriver: reset(0xf0734a80) at state 6 2021-09-08 12:12:51.005 1826-23600/? D/NuPlayerDriver: notifyResetComplete(0xf0734a80) 2021-09-08 12:12:51.005 1826-14999/? W/AMessage: failed to post message as target looper for handler 0 is gone. 2021-09-08 12:12:52.658 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31508579 , only wrote 31508548 2021-09-08 12:12:52.659 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31508559 , only wrote 31508548 2021-09-08 12:12:52.686 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31509762 , only wrote 31509209 2021-09-08 12:12:52.779 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31513307 , only wrote 31511853 2021-09-08 12:12:52.781 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31511916 , only wrote 31511853 2021-09-08 12:12:52.796 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31512519 , only wrote 31512514 2021-09-08 12:12:52.948 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31519225 , only wrote 31519124 2021-09-08 12:12:52.952 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31519287 , only wrote 31519124 2021-09-08 12:12:52.967 1785-6142/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31519794 , only wrote 31519785 2021-09-08 12:12:52.969 23433-23511/com.pdmc.glmetaforiki D/OneSignal: UserStateSynchronizer internalSyncUserState from session call: false jsonBody: {"sdk_type":"react","app_id":"94d9efe1-7b6d-429c-adb3-9de4f0390ef7"} 2021-09-08 12:12:52.980 23433-23625/com.pdmc.glmetaforiki D/OneSignal: OneSignalRestClient: Making request to: https://api.onesignal.com/players/5bfa9e8d-bb72-4061-b9c8-dcd08bc1476c 2021-09-08 12:12:52.983 23433-23625/com.pdmc.glmetaforiki D/OneSignal: OneSignalRestClient: PUT SEND JSON: {"sdk_type":"react","app_id":"94d9efe1-7b6d-429c-adb3-9de4f0390ef7"} 2021-09-08 12:12:53.243 23433-23625/com.pdmc.glmetaforiki V/OneSignal: OneSignalRestClient: After con.getResponseCode to: https://api.onesignal.com/players/5bfa9e8d-bb72-4061-b9c8-dcd08bc1476c 2021-09-08 12:12:53.243 23433-23625/com.pdmc.glmetaforiki D/OneSignal: OneSignalRestClient: Successfully finished request to: https://api.onesignal.com/players/5bfa9e8d-bb72-4061-b9c8-dcd08bc1476c 2021-09-08 12:12:53.244 23433-23625/com.pdmc.glmetaforiki D/OneSignal: OneSignalRestClient: PUT RECEIVED JSON: {"success":true} 2021-09-08 12:12:53.467 23433-23591/com.pdmc.glmetaforiki D/OneSignal: Running complete from OSNotificationOpenedResult timeout runnable! 2021-09-08 12:12:53.468 23433-23591/com.pdmc.glmetaforiki D/OneSignal: OSNotificationOpenedResult complete called with opened: false 2021-09-08 12:12:53.468 23433-23591/com.pdmc.glmetaforiki D/OneSignal: Running destroyTimeout with runnable: com.onesignal.OSNotificationOpenedResult$1@a586640 2021-09-08 12:12:54.017 1785-2002/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 31612002 , only wrote 31566055 2021-09-08 12:12:55.089 1868-1868/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe

jkasten2 commented 3 years ago

@rexcode Could you provide more details on "not shown on receipt"? Do you mean the OneSignal Confirmed Deliveries feature or do you mean a display issue?

Or do you mean it doesn't show as a heads-up notification banner? If this is the case you will need to setup an Android Category to get it to display as a heads up notification.

Can you give an example of the issue if it is not one of these?

rexcode commented 2 years ago

@jkasten2 I am having a display issue, notification is received but never shown as seen in image , red box is always empty, notification on receipt never gets displayed in the red box area

I have also created an android category and assigned it while sending notifications but it has no effect.

image

jkasten2 commented 2 years ago

@rexcode Can you try uninstalling and reinstalling the app on your device? When you change any Android Notification Category / Channel settings it only applies to new users installing your app. See this warning for more details "Changing Existing Categories"

Changing Existing Categories Any changes made to your category settings will not update for existing users. This is a designed limitation of Android as your users have the final say in their settings. You will need to create a new category or test your current category by clearing app data under Settings or fully uninstall and reinstall your app.

rgomezp commented 2 years ago

Closing due to no response