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

Android9.0, there is no message reminder after the screen is locked, the message pops up after unlocking #815

Closed
1129530686 opened this issue Jul 24, 2019 · 7 comments

Comments

@1129530686
Copy link

Android9.0 and Android8.0,there is no message reminder after the screen is locked. After the unlocking, the message pops up, and the lock screen is accepted on the mobile phone to accept the notification. What is the reason? Very anxious, thanks。

@rgomezp
Copy link
Contributor

rgomezp commented Jul 24, 2019

Howdy,
Could you please follow our issue template so we can better assist you?

@rochapablo
Copy link

rochapablo commented Jul 29, 2019

Notification only works when the app it's open (showing an alert, not a push notification). Minimized or closed (ended process) not working at all.

Testing on Android phone (not emulator).

"react": "16.8.6",
"react-native": "0.60.4",
"react-native-onesignal": "^3.3.0",

@rochapablo
Copy link

I forgot that for Zenfone it require extra steps to allow the notifications, now it's working partially. It still not working with the phone locked.

@jkasten2
Copy link
Member

@rochapablo Can you check the setting noted below for the Asus Zenfone?
https://www.verizonwireless.com/support/knowledge-base-214566/

@1129530686
Copy link
Author

This problem has been solved, I set the permission to open the lock screen notification in the Android project:
1,
2, final Window win = getWindow();
         win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED / / display in lock screen state
                 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD //Unlock
                 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); //Open the screen

@jkasten2
Copy link
Member

@1129530686 Can you provide more detail on how this fixed your issue? Adding settings to the window doesn't fit into how this would affect a notification.

@rochapablo
Copy link

@rochapablo Can you check the setting noted below for the Asus Zenfone?
https://www.verizonwireless.com/support/knowledge-base-214566/

Already working with Show all notification

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

No branches or pull requests

4 participants