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

Unexpected Full Screen Behavior with androidFullScreenIntent Set to False #279

Open
synstin opened this issue Nov 6, 2024 · 5 comments
Open
Assignees
Labels
bug Something isn't working needs author feedback Further information or answer is requested by author

Comments

@synstin
Copy link

synstin commented Nov 6, 2024

Alarm plugin version
4.0.9

Describe the bug
When receiving notifications, the app screen immediately appears even though androidFullScreenIntent is set to false. This behavior is different from version 3.1.7 where it worked as expected. The app should not force full screen display when this option is disabled.

Expected behavior
When androidFullScreenIntent is set to false:

  • The notification should only show on the lock screen or play a sound
  • The app should not immediately appear in full screen
  • This worked correctly in version 3.1.7

Device info

  • Device: Pixel 8 Pro
@synstin synstin added the bug Something isn't working label Nov 6, 2024
@gdelataillade
Copy link
Owner

Hi @synstin

I'm sorry to hear about your issue. I'll fix it as soon as I have the time. Thank you.

@gdelataillade
Copy link
Owner

@synstin should be fixed in new 4.0.10 version. Let me know.

@gdelataillade gdelataillade added the needs author feedback Further information or answer is requested by author label Nov 7, 2024
@synstin
Copy link
Author

synstin commented Nov 8, 2024

@gdelataillade Thanks for the quick fix!
The issue has been fixed.
However, I don't know if it's related to this issue, but
When a notification goes off, I only hear the sound but not the push message.
Is this the intended behaviour?

@synstin
Copy link
Author

synstin commented Nov 8, 2024

Based on my testing, I've observed the following notification behavior:

Current Behavior:

  • When app is in background and device screen is ON (home screen visible):
    • Both sound and push message are displayed correctly
  • When device screen is OFF:
    • Only notification sound plays
    • Push message is not shown on the lock screen

This issue only occurs on Android devices. On iOS, both sound and push messages are displayed properly on the lock screen even when the device screen is OFF.

@orkun1675
Copy link
Contributor

orkun1675 commented Dec 4, 2024

Hi @synstin I tried to address a similar issue with #294 which has since been released as v4.1.1.

Could you give it a try and let us know if it resolves the notification issue you are describing here?

Note: This PR removes Android Setup Step 3, so please revert that change if you had already completed it.

Note 2: Please make sure to set androidFullScreenIntent = true when creating the alarm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs author feedback Further information or answer is requested by author
Projects
None yet
Development

No branches or pull requests

3 participants