saycel / webph.one

The SayCel Webph.one - An App for Community Cell Networks
GNU Affero General Public License v3.0
11 stars 6 forks source link

can't open app from notifications #147

Closed sanchi closed 6 years ago

sanchi commented 6 years ago

Opening the App from notification works when the app is still in the background. When it is not in the background (e.g.: click on android 'open windows' button bottom left; then closing both Chrome and App windows), the notification comes in but it's not possible to click on the Answer button.

adb logcat:

12-14 17:39:17.501  2763  3102 I InputReader: Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1094 ] when=7173580466000
12-14 17:39:17.501  2763  3102 D InputReader: lastThreadEndTime = 7165672124027, currentThreadStartTime = 7165672126643, diff = 0
12-14 17:39:17.501  2763  3101 I InputDispatcher: Delivering touch to (3190): action: 0x0, toolType: 1
12-14 17:39:17.501  3190  3190 D ViewRootImpl: ViewPostImeInputStage processPointer 0
12-14 17:39:17.501  2763  3978 D SecContentProvider: query(), uri = 17 selection = isStatusBarExpansionallowedAsUser
12-14 17:39:17.581  2358  3053 D EnterpriseController: netId is 0
12-14 17:39:17.581  2358  3053 D Netd    : getNetworkForDns: using netid 505 for uid 10087
12-14 17:39:17.581  2358  3053 D EnterpriseController: netId is 0
12-14 17:39:17.581  2358  3053 D Netd    : getNetworkForDns: using netid 505 for uid 10087
12-14 17:39:17.581  2358  3053 D EnterpriseController: netId is 0
12-14 17:39:17.581  2358  3053 D Netd    : getNetworkForDns: using netid 505 for uid 10087
12-14 17:39:17.581  2763  3102 D InputReader: Input event(1): value=0 when=7173665532000
12-14 17:39:17.581  2763  3102 D InputReader: Input event(1): value=0 when=7173665532000
12-14 17:39:17.581  2763  3102 I InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=7173665532000
12-14 17:39:17.581  2763  3101 I InputDispatcher: Delivering touch to (3190): action: 0x1, toolType: 1
12-14 17:39:17.581  3190  3190 D ViewRootImpl: ViewPostImeInputStage processPointer 1
12-14 17:39:17.591  3190  3190 D StatusBar: Clicked on button -1 for 0|org.chromium.webapk.a91453101ece688be|-1|NotificationPlatformBridge;https://pearlcel.webph.one/;document-hidden|10068
12-14 17:39:17.601  2763  2877 V BroadcastQueue: [foreground] Process cur broadcast BroadcastRecord{55b40ae u0 org.chromium.chrome.browser.notifications.CLICK_NOTIFICATION qIdx=2}, state= (APP_RECEIVE) DELIVERED for app ProcessRecord{1caf7ea 9654:com.android.chrome/u0a87}
12-14 17:39:17.601  9654  9654 I NotificationService: Received a notification intent in the NotificationService's receiver.
12-14 17:39:17.611  9654  9654 I cr_NotificationPlatformBridge: Dispatching notification event to native: p:2466D430568E1F668EF31A2047728E139D88EB640https://pearlcel.webph.one/1document-hidden
12-14 17:39:17.611  9654  9696 I chromium: [INFO:notification_event_dispatcher_impl.cc(164)] Lookup for ServiceWoker Registration: success: 1
12-14 17:39:17.611  9654  9696 I chromium: [INFO:notification_event_dispatcher_impl.cc(103)] Trying to dispatch notification for SW with status: 0
12-14 17:39:17.611  9654  9696 I chromium: [INFO:notification_event_dispatcher_impl.cc(53)] The notification event has finished: 0

12-14 17:39:18.951  3478  3504 D ContactsProvider_EventLog: contents_sample_state: [ contacts(41) data(82) accounts({vnd.sec.contact.phone (1)=41}) accounts deleted({}) calls([logtype:100 cnt:496, logtype:500 cnt:4])  ]
12-14 17:39:18.951  3478  3504 D ContactsProvider_EventLog: contents_sample_state: [ agr({[1]=41})  ]
12-14 17:39:19.181  3478  3504 E ContactsProvider_EventLog: Flush buffer to file cnt : 11 size : 5Kb duration : 216ms lastUpdatedAfter : 60137 ms mFlush_time_threasold : 2000 mCurrentSize : 2662

12-14 17:39:20.521  2763  3102 D InputReader: Input event(1): value=1 when=7176607825000
12-14 17:39:20.521  2763  3102 D InputReader: Input event(1): value=1 when=7176607825000
12-14 17:39:20.521  2763  3102 I InputReader: Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1095 ] when=7176607825000
12-14 17:39:20.521  2763  3102 D InputReader: lastThreadEndTime = 7173665799137, currentThreadStartTime = 7173665805175, diff = 0
12-14 17:39:20.521  2763  3101 I InputDispatcher: Delivering touch to (3190): action: 0x0, toolType: 1
12-14 17:39:20.531  3190  3190 D ViewRootImpl: ViewPostImeInputStage processPointer 0
12-14 17:39:20.531  2763  2778 D SecContentProvider: query(), uri = 17 selection = isStatusBarExpansionallowedAsUser
12-14 17:39:20.611  2763  3102 D InputReader: Input event(1): value=0 when=7176693984000
12-14 17:39:20.611  2763  3102 D InputReader: Input event(1): value=0 when=7176693984000
12-14 17:39:20.611  2763  3102 I InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=7176693984000
12-14 17:39:20.611  2763  3101 I InputDispatcher: Delivering touch to (3190): action: 0x1, toolType: 1
12-14 17:39:20.611  3190  3190 D ViewRootImpl: ViewPostImeInputStage processPointer 1
12-14 17:39:20.611  3190  3190 D StatusBar: Clicked on button -1 for 0|org.chromium.webapk.a91453101ece688be|-1|NotificationPlatformBridge;https://pearlcel.webph.one/;document-hidden|10068
12-14 17:39:20.621  2763  2877 V BroadcastQueue: [foreground] Process cur broadcast BroadcastRecord{54e49dc u0 org.chromium.chrome.browser.notifications.CLICK_NOTIFICATION qIdx=2}, state= (APP_RECEIVE) DELIVERED for app ProcessRecord{1caf7ea 9654:com.android.chrome/u0a87}
12-14 17:39:20.621  9654  9654 I NotificationService: Received a notification intent in the NotificationService's receiver.
12-14 17:39:20.631  9654  9654 I cr_NotificationPlatformBridge: Dispatching notification event to native: p:2466D430568E1F668EF31A2047728E139D88EB640https://pearlcel.webph.one/1document-hidden
12-14 17:39:20.631  9654  9696 I chromium: [INFO:notification_event_dispatcher_impl.cc(164)] Lookup for ServiceWoker Registration: success: 1
12-14 17:39:20.631  9654  9696 I chromium: [INFO:notification_event_dispatcher_impl.cc(103)] Trying to dispatch notification for SW with status: 0
12-14 17:39:20.631  9654  9696 I chromium: [INFO:notification_event_dispatcher_impl.cc(53)] The notification event has finished: 0
12-14 17:39:21.661  2763  6612 D SSRM:n  : SIOP:: AP = 320, PST = 326 (W:18), LCD = 159
sanchi commented 6 years ago

hm, not sure about this phone at all. maybe there's not so much we can do about it.