Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Xiaomi - Notification Open - Not foregrounding app (SDK 5) #2042

Open
1 task done
wif70068 opened this issue Apr 4, 2024 · 5 comments
Open
1 task done

[Bug]: Xiaomi - Notification Open - Not foregrounding app (SDK 5) #2042

wif70068 opened this issue Apr 4, 2024 · 5 comments

Comments

@wif70068
Copy link

wif70068 commented Apr 4, 2024

What happened?

Like #1494, I'm having this problem again on OneSignal Cordova 5.1.0 for Capacitor. It does happen most, but not all of the time. Couldn't find a pattern yet (like is app closed or backgrounded beforehand). When I open the app manually afterwards, it shows the apps normal reaction to the push, so it's just not foregrounded.

OneSignal SDK 5.1.6
11 RKQ1.200826.002
Xiaomi Mi 9T Pro
MIUI Global 12.5.1 Stabil 12.5.1.0 (RJDEUXM)

Steps to reproduce?

1. Send push notification
2. Click on the notification
3. Nothing happens

What did you expect to happen?

App is foregrounded

OneSignal Android SDK version

5.1.6

Android version

11

Specific Android models

* Xiaomi Mi 9T Pro

Relevant log output

03-25 15:12:13.696 2196 5710 I ActivityTaskManager: START u0 {flg=0x24000000 cmp=com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity (has extras)} from uid 12345
03-25 15:12:13.696 6235 6235 W PushService: [Tid:2] onStart() with intent.Action = com.xiaomi.push.timer, chid = null, pkg = null|null
03-25 15:12:13.697 6235 6495 W PushService: [Tid:485] [Job] Handle intent action = com.xiaomi.push.timer
03-25 15:12:13.697 6235 6495 W PushService: [Tid:485] [Alarm] Service called on timer
03-25 15:12:13.697 6235 6495 W PushService: [Tid:485] [Alarm] register alarm. (false)
03-25 15:12:13.697 2196 5710 W ActivityTaskManager: startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { flg=0x24800000 cmp=com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity (has extras) }
03-25 15:12:13.697 6235 6495 W PushService: [Tid:485] [HB] ping interval:600000
03-25 15:12:13.698 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 0
03-25 15:12:13.698 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 0
03-25 15:12:13.698 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.698 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.698 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.698 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.698 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.698 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for AdaptLaunch
03-25 15:12:13.698 876 1014 D ANDR-PERF-LM: Feature: lookup() 101: Feature Name = AppClassifier, total featuers = 3, featureFound = 1
03-25 15:12:13.699 876 1014 D ANDR-PERF-LM: Feature: getData() 112: data.data = 1
03-25 15:12:13.699 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for AdaptLaunch returned
03-25 15:12:13.699 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.699 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.699 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.699 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.700 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.700 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.700 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.700 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for AdaptLaunch
03-25 15:12:13.700 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.700 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.700 876 876 D ANDR-PERF-LM: Feature: lookup() 101: Feature Name = AppClassifier, total featuers = 3, featureFound = 1
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: MetaMeter: isValidAsync() 194: AsyncInfo: hintID = 4225
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: hintType: 2
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: isPrimary = 0
03-25 15:12:13.701 876 876 D ANDR-PERF-LM: Feature: getData() 112: data.data = 1
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: MetaMeter: isValidAsync() 203: Invalid (hintID,hintType,appName,duration,appPID,appThreadTID) = (4225, 2,com.my.app,-1,2196,5710)
03-25 15:12:13.701 876 1014 E ANDR-PERF-LM: MetaMeter: handleAsync() 164: AdaptLaunch Invalid Async
03-25 15:12:13.701 876 876 I ANDR-PERF-LM: FeedbackAPI: getFeedback() 60: app:com.my.app feature:AppClassifier feedback = 1
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for AdaptLaunch returned
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.701 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.701 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.701 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.701 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for AdaptLaunch
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: MetaMeter: isValidAsync() 194: AsyncInfo: hintID = 4225
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: hintType: 3
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: isPrimary = 0
03-25 15:12:13.701 2196 5710 E ANDR-PERF-JNI: com_qualcomm_qtiperformance_native_perf_io_prefetch_start
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: MetaMeter: isValidAsync() 203: Invalid (hintID,hintType,appName,duration,appPID,appThreadTID) = (4225, 3,com.my.app,-1,2196,5710)
03-25 15:12:13.701 876 1014 E ANDR-PERF-LM: MetaMeter: handleAsync() 164: AdaptLaunch Invalid Async
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for AdaptLaunch returned
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.701 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.702 2196 5710 I wm_task_created: [61128,-1]
03-25 15:12:13.702 2196 5710 I wm_stack_created: 61128
03-25 15:12:13.704 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.704 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.704 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.704 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.704 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.704 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for AdaptLaunch
03-25 15:12:13.704 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for AdaptLaunch returned
03-25 15:12:13.704 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.704 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.706 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.706 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.706 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.706 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.706 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.706 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for AdaptLaunch
03-25 15:12:13.706 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for AdaptLaunch returned
03-25 15:12:13.706 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.706 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.707 2196 5710 I wm_create_task: [0,61128]
03-25 15:12:13.707 2196 5710 I wm_create_activity: [0,78010219,61128,com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity,NULL,NULL,NULL,880803840]
03-25 15:12:13.707 3068 3068 I wm_on_top_resumed_lost_called: [6957192,com.miui.home.launcher.Launcher,topStateChangedWhenResumed]
03-25 15:12:13.708 2196 5710 D CompatibilityInfo: mCompatibilityFlags - 0
03-25 15:12:13.708 2196 5710 D CompatibilityInfo: applicationDensity - 440
03-25 15:12:13.708 2196 5710 D CompatibilityInfo: applicationScale - 1.0
03-25 15:12:13.708 874 967 E ANDR-IOP: io prefetch is disabled
03-25 15:12:13.709 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 2
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for GameOptimization
03-25 15:12:13.709 876 1014 D ANDR-PERF-LM: Feature: lookup() 101: Feature Name = AppClassifier, total featuers = 3, featureFound = 1
03-25 15:12:13.709 876 876 E ANDR-PERF-MPCTL: Active req limit reached, No optimizations performed
03-25 15:12:13.709 876 1014 D ANDR-PERF-LM: Feature: getData() 112: data.data = 1
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for GameOptimization returned
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.709 2196 5710 D ActivityTrigger: ActivityTrigger activityPauseTrigger
03-25 15:12:13.709 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 3
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.709 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for GameOptimization
03-25 15:12:13.709 876 1014 D ANDR-PERF-LM: Feature: lookup() 101: Feature Name = AppClassifier, total featuers = 3, featureFound = 1
03-25 15:12:13.709 876 1014 D ANDR-PERF-LM: Feature: getData() 112: data.data = 1
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for GameOptimization returned
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.709 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 3
03-25 15:12:13.709 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.709 2196 5710 I wm_pause_activity: [0,6957192,com.miui.home/.launcher.Launcher,userLeaving=false]
03-25 15:12:13.712 3068 3068 D Launcher.Lifecycle: onPause:UserHandle{0},9d6b453,false
03-25 15:12:13.712 3068 3068 D Launcher_UnlockAnimationStateMachine: setState:PAUSE_WAIT
03-25 15:12:13.713 3068 3068 D ScreenElementRoot: pause
03-25 15:12:13.713 3068 3068 I wm_on_paused_called: [0,com.miui.home.launcher.Launcher,performPause,1]
03-25 15:12:13.714 2795 2795 V ShadeControllerImpl: NotificationShadeWindow: com.android.systemui.statusbar.phone.NotificationShadeWindowView{716784b V.E...... ........ 0,0-1080,2340 aid=363} canPanelBeCollapsed(): true
03-25 15:12:13.714 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 4
03-25 15:12:13.714 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 4
03-25 15:12:13.714 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 2
03-25 15:12:13.714 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.714 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.714 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.714 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.714 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.714 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for GameOptimization
03-25 15:12:13.714 876 1014 D ANDR-PERF-LM: Feature: lookup() 101: Feature Name = AppClassifier, total featuers = 3, featureFound = 1
03-25 15:12:13.715 876 876 E ANDR-PERF-MPCTL: Active req limit reached, No optimizations performed
03-25 15:12:13.715 876 1014 D ANDR-PERF-LM: Feature: getData() 112: data.data = 1
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for GameOptimization returned
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.715 2795 2795 V PanelView: updateDismissView false
03-25 15:12:13.715 2196 5785 I ActivityTaskManager: The Process com.my.app Already Exists in BG. So sending its PID: 1234
03-25 15:12:13.715 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.715 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.715 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.715 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for AdaptLaunch
03-25 15:12:13.715 2196 5785 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (698601854)
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: MetaMeter: isValidAsync() 194: AsyncInfo: hintID = 4225
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: hintType: 102
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: isPrimary = 0
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: MetaMeter: isValidAsync() 203: Invalid (hintID,hintType,appName,duration,appPID,appThreadTID) = (4225, 102,com.my.app,1234,2196,5785)
03-25 15:12:13.715 876 1014 E ANDR-PERF-LM: MetaMeter: handleAsync() 164: AdaptLaunch Invalid Async
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for AdaptLaunch returned
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.715 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.715 2196 5294 I sysui_multi_action: [757,128,758,2,793,451196,794,7377,795,145397,796,1058679295,798,2,806,com.another.app2,857,Other3,858,3,946,messages,947,0,1395,11,1500,145397,1641,msg,1688,1,1745,732821530]
03-25 15:12:13.716 2196 5294 I notification_visibility: [0|com.another.app2|1058679295|null|10168,0,451196,145397,0,2]
03-25 15:12:13.716 2196 5785 I wm_restart_activity: [0,78010219,61128,com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity]
03-25 15:12:13.716 2196 5785 D CompatibilityInfo: mCompatibilityFlags - 0
03-25 15:12:13.716 2196 5785 D CompatibilityInfo: applicationDensity - 440
03-25 15:12:13.716 2196 5785 D CompatibilityInfo: applicationScale - 1.0
03-25 15:12:13.716 2196 5294 I sysui_multi_action: [757,128,758,2,793,3350283,794,6490,795,3350283,796,26,798,7,806,android,857,DEVELOPER_IMPORTANT,858,4,947,0,1395,11,1500,3349969,1688,1]
03-25 15:12:13.716 2196 5294 I notification_visibility: [-1|android|26|null|1000,0,3350283,3350283,0,7]
03-25 15:12:13.716 2196 5294 I sysui_multi_action: [757,128,758,2,793,785500,794,6489,795,785500,796,50050,798,3,806,org.thoughtcrime.securesms,857,messages_1 : 153,858,4,946,messages,947,0,1395,11,1500,784921,1641,msg,1688,1,1744,1,1745,732821530]
03-25 15:12:13.716 2196 5294 I notification_visibility: [0|org.thoughtcrime.securesms|50050|null|10167,0,785500,785500,0,3]
03-25 15:12:13.716 2196 5294 I sysui_multi_action: [757,128,758,2,793,3101749,794,7377,795,145405,796,1752685255,798,0,806,com.another.app2,857,Other3,858,3,946,messages,947,0,1395,11,1500,7377,1641,msg,1688,1,1745,732821530]
03-25 15:12:13.716 2196 5294 I notification_visibility: [0|com.another.app2|1752685255|null|10168,0,3101749,145405,0,0]
03-25 15:12:13.716 2196 5294 I sysui_multi_action: [757,128,758,2,793,451207,794,6488,795,145416,796,1,798,1,806,com.another.app2,857,0channel_private_b9fad_-657-e9bdf35e,858,4,946,messages,947,1,1395,11,1500,145416,1641,msg,1688,1,1745,945454168]
03-25 15:12:13.716 2196 5294 I notification_visibility: [0|com.another.app2|1|null|10168,0,451207,145416,0,1]
03-25 15:12:13.716 2196 5294 I sysui_multi_action: [757,128,758,2,793,3347512,794,6488,795,3347512,796,27,798,10,806,android,857,USB,858,1,947,0,1395,11,1500,3347302,1688,1]
03-25 15:12:13.716 2196 5294 I notification_visibility: [-1|android|27|null|1000,0,3347512,3347512,0,10]
03-25 15:12:13.716 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 2
03-25 15:12:13.716 2196 5294 I sysui_multi_action: [757,128,758,2,793,14413,794,6487,795,14413,796,334714082,798,8,806,com.my.app,857,OS_4c3f1e15-0023-47f7-bfc2--52665c01,858,4,947,0,1395,11,1500,14127,1688,1,1745,680407814]
03-25 15:12:13.716 2196 5294 I notification_visibility: [0|com.my.app|334714082|null|12345,0,14413,14413,0,8]
03-25 15:12:13.716 2196 5294 I sysui_multi_action: [757,128,758,2,793,812777,794,6487,795,812777,796,0,797,39b4b41a-dbb5-45ca-ad67-84a9fc22927d,798,9,806,com.another.app,857,notifications,858,3,947,0,1395,11,1500,812572,1688,1,1745,680407814]
03-25 15:12:13.716 2196 5294 I notification_visibility: [0|com.another.app|0|39b4b41a-dbb5-45ca-ad67-84a9fc22927d|10319,0,812777,812777,0,9]
03-25 15:12:13.717 2196 5785 I wm_set_resumed_activity: [0,com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity,minimalResumeActivityLocked]
03-25 15:12:13.716 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 2
03-25 15:12:13.717 12612 13631 D PerfEngineController: ForegroundInfo{mForegroundPackageName='com.my.app', mForegroundUid=12345, mForegroundPid=1234, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10040, mLastForegroundPid=3068, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.717 21374 21425 I ProcessMonitor: onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.my.app', mForegroundUid=12345, mForegroundPid=1234, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10040, mLastForegroundPid=3068, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.717 7043 20485 I GST : forePkg: com.my.app, preForePkg: com.miui.home
03-25 15:12:13.717 3912 3929 I ProcessMonitor: onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.my.app', mForegroundUid=12345, mForegroundPid=1234, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10040, mLastForegroundPid=3068, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.718 2196 5393 D systemui_boost: notification panel visible=false
03-25 15:12:13.718 3912 3929 I GameBoosterService: onForegroundInfoChanged: Cur=com.my.app last=com.miui.home
03-25 15:12:13.718 2196 5393 D systemui_boost: ui thread tid=2795
03-25 15:12:13.718 2196 5393 D systemui_boost: render thread tid=3257
03-25 15:12:13.718 2196 5393 D systemui_boost: thread tid=2795, priority is set to -10
03-25 15:12:13.718 2196 5393 D systemui_boost: thread tid=3257, priority is set to -10
03-25 15:12:13.718 2196 5393 D systemui_boost: ui thread and render thread are reset
03-25 15:12:13.718 2196 5393 I sysui_multi_action: [757,127,758,2]
03-25 15:12:13.718 2196 5393 I notification_panel_hidden:
03-25 15:12:13.718 2196 5785 I Timeline: Timeline: App_transition_ready time:698652327
03-25 15:12:13.721 2196 2718 I sysui_multi_action: [757,128,758,4,793,14418,794,6492,795,14418,796,334714082,798,7,806,com.my.app,857,OS_4c3f1e15-0023-47f7-bfc2--52665c01,858,4,947,0,1395,11,1500,14132,1688,1,1745,680407814]
03-25 15:12:13.721 2196 2718 I notification_clicked: [0|com.my.app|334714082|null|12345,14418,14418,6492,7,11]
03-25 15:12:13.721 2196 2196 I sysui_multi_action: [757,804,799,note_click_longevity,801,0,802,1]
03-25 15:12:13.721 3912 3929 D GameBoosterService: onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.my.app', mForegroundUid=12345, mForegroundPid=1234, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10040, mLastForegroundPid=3068, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.721 3912 3929 I VideoBoxUtils: isSupportVideoBox: false
03-25 15:12:13.721 2196 2196 I sysui_multi_action: [757,128,758,5,759,1,793,14418,794,6492,795,14418,796,334714082,798,7,806,com.my.app,857,OS_4c3f1e15-0023-47f7-bfc2--52665c01,858,4,947,0,1395,11,1500,14132,1688,1,1745,680407814]
03-25 15:12:13.721 2196 2196 I notification_canceled: [0|com.my.app|334714082|null|12345,1,14418,14418,6492,7,11,NULL]
03-25 15:12:13.721 3912 3929 I VideoToolBoxService: vtb is closed!!!
03-25 15:12:13.721 3912 3929 I BeautyService: onForegroundInfoChanged: Cur=com.my.app last=com.miui.home
03-25 15:12:13.721 6235 6495 W PushService: [Tid:485] [Slim] SND ping id=0
03-25 15:12:13.722 6235 6473 W PushService: [Tid:482] [Alarm] heartbeat alarm finish in 31
03-25 15:12:13.724 1234 1234 D OneSignal: [main] ApplicationService.onActivityCreated(0,APP_CLOSE): com.onesignal.notifications.activities.NotificationOpenedActivity@c1fe0a3
03-25 15:12:13.725 1234 1234 D OneSignal: [main] initWithContext(context: android.app.Application@f4a0060, appId: null)
03-25 15:12:13.725 1234 1234 D OneSignal: [main] initWithContext: SDK already initialized
03-25 15:12:13.730 1234 4938 D OneSignal: [Thread-28] Retrieving service interface com.onesignal.notifications.internal.open.INotificationOpenedProcessor
03-25 15:12:13.730 1234 4938 D OneSignal: [Thread-28] Found constructor: public com.onesignal.notifications.internal.open.impl.NotificationOpenedProcessor(com.onesignal.notifications.internal.summary.INotificationSummaryManager,com.onesignal.notifications.internal.data.INotificationRepository,com.onesignal.core.internal.config.ConfigModelStore,com.onesignal.notifications.internal.lifecycle.INotificationLifecycleService)
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Retrieving service interface com.onesignal.notifications.internal.summary.INotificationSummaryManager
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Already instantiated: com.onesignal.notifications.internal.summary.impl.NotificationSummaryManager@cbaa937
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Retrieving service interface com.onesignal.notifications.internal.data.INotificationRepository
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Already instantiated: com.onesignal.notifications.internal.data.impl.NotificationRepository@981d862
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Retrieving service class com.onesignal.core.internal.config.ConfigModelStore
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Already instantiated: com.onesignal.core.internal.config.ConfigModelStore@5220626
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Retrieving service interface com.onesignal.notifications.internal.lifecycle.INotificationLifecycleService
03-25 15:12:13.731 1234 4938 D OneSignal: [Thread-28] Already instantiated: com.onesignal.notifications.internal.lifecycle.impl.NotificationLifecycleService@21c0bd1
03-25 15:12:13.731 3068 3068 I RenderVsyncUpdater: All controllers paused.
03-25 15:12:13.732 3068 3218 D StatusBarController: handleMessage: flag 800000 disable false
03-25 15:12:13.732 2196 3118 I wm_finish_activity: [0,78010219,61128,com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity,app-request]
03-25 15:12:13.733 2196 3118 I wm_task_moved: [2,1,2147483647]
03-25 15:12:13.733 2196 2443 I MiuiNetworkPolicy: updateUidState uid = 12345, uidState = 2
03-25 15:12:13.733 2196 2443 I MiuiNetworkPolicy: updateUidState uid = 99545, uidState = 3
03-25 15:12:13.733 2196 3118 D ActivityTrigger: ActivityTrigger activityPauseTrigger
03-25 15:12:13.733 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.734 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.734 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.734 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.734 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.734 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for GameOptimization
03-25 15:12:13.734 876 1014 D ANDR-PERF-LM: Feature: lookup() 101: Feature Name = AppClassifier, total featuers = 3, featureFound = 1
03-25 15:12:13.734 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 3
03-25 15:12:13.734 2196 3118 I wm_pause_activity: [0,78010219,com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity,userLeaving=false]
03-25 15:12:13.734 882 882 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 3
03-25 15:12:13.734 876 1014 D ANDR-PERF-LM: Feature: getData() 112: data.data = 1
03-25 15:12:13.734 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for GameOptimization returned
03-25 15:12:13.734 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.734 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.735 1234 1234 I wm_on_create_called: [0,com.onesignal.notifications.activities.NotificationOpenedActivity,performCreate,11]
03-25 15:12:13.740 1234 4938 D OneSignal: [Thread-28] processIntent from context: com.onesignal.notifications.activities.NotificationOpenedActivity@c1fe0a3 and intent: Intent { flg=0x34800000 cmp=com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity (has extras) }
03-25 15:12:13.740 1234 4938 D OneSignal: [Thread-28] processIntent intent extras: Bundle[{...}}]
03-25 15:12:13.741 2196 2216 I sysui_multi_action: [757,803,799,window_time_0,802,48]
03-25 15:12:13.745 2795 2795 I event_statusbar_state: 0
03-25 15:12:13.745 2795 2795 D StatusBar: disable disable2
03-25 15:12:13.745 3068 3068 D Launcher_WallpaperUtils: changeStatusBarMode:false
03-25 15:12:13.745 3068 3068 I RenderVsyncUpdater: All controllers paused.
03-25 15:12:13.747 2795 4181 D NdkImageReader: acquireImageLocked: Producer buffer usage: 333, doesn't cover all usage bits AImageReader configured: 100003
03-25 15:12:13.749 3068 3068 D RecentsImpl: mActivityStateObserver com.onesignal.notifications.activities.NotificationOpenedActivity
03-25 15:12:13.749 3068 3068 W RecentsImpl: onResumed className=com.onesignal.notifications.activities.NotificationOpenedActivity mIsInAnotherPro=false
03-25 15:12:13.749 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 4
03-25 15:12:13.750 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 4
03-25 15:12:13.750 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 7
03-25 15:12:13.750 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 7
03-25 15:12:13.750 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 2
03-25 15:12:13.750 876 876 I ANDR-PERF-LM: LMPerfGlue: perfmodule_submit_request() 132: perfmodule_submit_request()
03-25 15:12:13.750 876 876 I ANDR-PERF-LM: Core: getInstance() 84: LM getInstance
03-25 15:12:13.750 876 876 I ANDR-PERF-LM: WQ: push() 59: LMTriggerQ push() size=0
03-25 15:12:13.750 876 876 I ANDR-PERF-LM: WQ: push() 61: LMTriggerQ push() done size=1
03-25 15:12:13.750 876 1014 I ANDR-PERF-LM: WQ: pop() 42: LMTriggerQ pop() done size=0
03-25 15:12:13.750 876 1014 I ANDR-PERF-LM: Core: lmMain() 381: Calling runAsync for GameOptimization
03-25 15:12:13.750 876 1014 D ANDR-PERF-LM: Feature: lookup() 101: Feature Name = AppClassifier, total featuers = 3, featureFound = 1
03-25 15:12:13.750 876 1014 D ANDR-PERF-LM: Feature: getData() 112: data.data = 1
03-25 15:12:13.750 876 1014 I ANDR-PERF-LM: Core: lmMain() 391: runAsync for GameOptimization returned
03-25 15:12:13.750 876 1014 I ANDR-PERF-LM: Core: lmMain() 373: Waiting on trigger Queue
03-25 15:12:13.750 876 1014 I ANDR-PERF-LM: WQ: pop() 31: LMTriggerQ pop() size=0
03-25 15:12:13.750 876 876 E ANDR-PERF-MPCTL: Active req limit reached, No optimizations performed
03-25 15:12:13.751 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 2
03-25 15:12:13.751 1234 4497 D OneSignal: [DefaultDispatcher-worker-1] HttpClient: PUT notifications/... - {...}
03-25 15:12:13.751 2196 2631 I wm_set_resumed_activity: [0,com.miui.home/.launcher.Launcher,resumeTopActivityInnerLocked]
03-25 15:12:13.752 2196 2631 I wm_resume_activity: [0,6957192,2,com.miui.home/.launcher.Launcher]
03-25 15:12:13.752 12612 21646 D PerfEngineController: ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10040, mForegroundPid=3068, mLastForegroundPackageName='com.my.app', mLastForegroundUid=12345, mLastForegroundPid=1234, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.752 21374 21390 I ProcessMonitor: onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10040, mForegroundPid=3068, mLastForegroundPackageName='com.my.app', mLastForegroundUid=12345, mLastForegroundPid=1234, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.752 2196 2631 I wm_destroy_activity: [0,78010219,61128,com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity,finish-imm:completePausedLocked]
03-25 15:12:13.753 3912 3929 I ProcessMonitor: onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10040, mForegroundPid=3068, mLastForegroundPackageName='com.my.app', mLastForegroundUid=12345, mLastForegroundPid=1234, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.753 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 7
03-25 15:12:13.753 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 8
03-25 15:12:13.753 882 14795 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 8
03-25 15:12:13.753 7043 20485 I GST : forePkg: com.miui.home, preForePkg: com.my.app
03-25 15:12:13.753 3912 3929 I GameBoosterService: onForegroundInfoChanged: Cur=com.miui.home last=com.my.app
03-25 15:12:13.754 3912 3929 D GameBoosterService: onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10040, mForegroundPid=3068, mLastForegroundPackageName='com.my.app', mLastForegroundUid=12345, mLastForegroundPid=1234, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-25 15:12:13.754 3912 3929 I VideoBoxUtils: isSupportVideoBox: false
03-25 15:12:13.754 3912 3929 I VideoToolBoxService: vtb is closed!!!
03-25 15:12:13.754 3912 3929 I BeautyService: onForegroundInfoChanged: Cur=com.miui.home last=com.my.app
03-25 15:12:13.755 2795 2795 D NotificationFilterController: filter group summary suppressed key=0|org.thoughtcrime.securesms|1338|null|10167
03-25 15:12:13.755 2196 2631 I Timeline: Timeline: App_transition_ready time:698652364
03-25 15:12:13.755 3068 3068 D Launcher.Lifecycle: onResume:UserHandle{0},9d6b453,false
03-25 15:12:13.756 2196 2631 I Timeline: Timeline: App_transition_stopped time:698652364
03-25 15:12:13.756 3068 3068 D ScreenElementRoot: resume
03-25 15:12:13.757 1234 1234 D OneSignal: [main] ApplicationService.onActivityDestroyed(0,APP_CLOSE): com.onesignal.notifications.activities.NotificationOpenedActivity@c1fe0a3
03-25 15:12:13.758 1234 1234 I wm_on_destroy_called: [0,com.onesignal.notifications.activities.NotificationOpenedActivity,performDestroy,0]
03-25 15:12:13.758 2795 2795 D NotifBadge: update app badge num: com.my.app/,num=0,isAllowed=true,userId=0
03-25 15:12:13.758 882 8569 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 9
03-25 15:12:13.758 2196 2631 I wm_task_removed: [61128,removeChild: last r=ActivityRecord{4a6576b u0 com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity t-1 f}} in t=Task{13802c8 #61128 visible=true type=standard mode=fullscreen translucent=true I=com.my.app/com.onesignal.notifications.activities.NotificationOpenedActivity U=0 StackId=61128 sz=0}]
03-25 15:12:13.758 2196 2631 I wm_task_removed: [61128,removeTask]
03-25 15:12:13.759 2196 2631 I wm_task_removed: [61128,removeTask]
03-25 15:12:13.759 2196 2631 I wm_stack_removed: 61128
03-25 15:12:13.758 882 8569 I vendor.qti.hardware.servicetracker@1.2-service: Activity state is changed to : 9
03-25 15:12:13.759 3068 3431 I RenderThread: RenderThread resumed
03-25 15:12:13.759 3068 3431 I RenderThread: All controllers paused.
03-25 15:12:13.759 3068 3431 I RenderThread: RenderThread paused, waiting for signal
03-25 15:12:13.759 3068 3218 D StatusBarController: handleMessage: flag 800000 disable true
03-25 15:12:13.760 3068 3068 D Launcher.RecommendController: folder display but only request when folder open
03-25 15:12:13.760 3068 3068 D Launcher_UnlockAnimationStateMachine: setState:IDLE
03-25 15:12:13.760 3068 3068 I wm_on_resume_called: [0,com.miui.home.launcher.Launcher,RESUME_ACTIVITY,6]
03-25 15:12:13.760 3068 3068 I wm_on_top_resumed_gained_called: [6957192,com.miui.home.launcher.Launcher,topWhenResuming]

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jkasten2
Copy link
Member

jkasten2 commented Apr 4, 2024

@wif70068 Does this issue happen on the previous pre-5.x.x OneSignal SDK on your test device?

  • We are trying to see if this is a change with MIUI or the OneSignal SDK.

@wif70068
Copy link
Author

wif70068 commented Apr 5, 2024

@jkasten2 We directly upgraded from SDK 3 to 5. On 3 the same test device would weirdly have the same issue every time - but only on debug builds - and never have an issue on release builds.

@jkasten2
Copy link
Member

jkasten2 commented Apr 5, 2024

@wif70068 Does the issue only happen when the app has “Display pop-up windows while running in the background” disabled in the MIUI settings?

  • I believe the default is disabled but would be useful to know if enabling it has any affect on the SDK issue.

@wif70068
Copy link
Author

wif70068 commented Apr 6, 2024

@jkasten2 it actually does seem to resolve the issue. No event in 20 tries.

@jkasten2
Copy link
Member

jkasten2 commented May 7, 2024

Thanks for letting us know, this helps narrow down the issue. We still consider this a bug in the SDK, since it should work regardless of the setting. We will investigate on our end and update this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants