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

Does not run at startup: no sms are received unless messages is started #266

Closed
7 tasks done
Wanou38 opened this issue Dec 27, 2024 · 13 comments
Closed
7 tasks done
Labels
invalid This does not seem right

Comments

@Wanou38
Copy link

Wanou38 commented Dec 27, 2024

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.0.1

Affected Android/Custom ROM version

Android 11

Affected device model

Blackview BV6600 pro

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. Open the fossify messenger app
  2. Send a test sms to the phone with the text "opened app"
  3. Close the messenger app
  4. Send a test sms to the phone with the text "closed app"

Expected behavior

Both SMS are received

Actual behavior

Only "opened app" SMS is received

Screenshots/Screen recordings

No response

Additional information

"run at startup" permission seem missing in the list on F-Droid store. Some other sms apps have it so it may explain why this happens to me.

@Wanou38 Wanou38 added bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Dec 27, 2024
@Aga-C
Copy link
Member

Aga-C commented Dec 27, 2024

Do you see both messages after entering the app?

@Aga-C Aga-C added question Further information is requested waiting for author If the author does not respond, the issue will be closed. Otherwise, the label will be removed. labels Dec 27, 2024
@Wanou38
Copy link
Author

Wanou38 commented Dec 28, 2024

No, the "closed app" message is lost.

@Aga-C Aga-C added device/software specific Issues that only happen on some devices or with some specific hardware/software and removed question Further information is requested waiting for author If the author does not respond, the issue will be closed. Otherwise, the label will be removed. labels Dec 28, 2024
@antodc
Copy link
Contributor

antodc commented Dec 28, 2024

@Wanou38 I have an Oscal phone, which is kind of a cheaper brand of Blackview. I have to put the Message app in the white list of the System Management app. Maybe you can try doing the same, if you did not yet.

@Wanou38
Copy link
Author

Wanou38 commented Dec 28, 2024

In the battery optimization menu, the "Fossify messages" app can't be optimized so it should not be doze by system.
But, when issuing adb shell dumpsys deviceidle whitelist, org.fossify.messages is not in the list.
Update: adb shell dumpsys deviceidle whitelist +org.fossify.messages do the job but incoming sms still get lost when messages is not running

@antodc
Copy link
Contributor

antodc commented Dec 28, 2024

@Wanou38 Do you have a System Manager app on your phone? It has an icon with a shield. If yes, open that app, select 'App management' and then select Fossify Messages in the 'Auto Start Management' and 'Auto cleanup' sections. No root permissions are required.
If you do not have any System Manager app, forget my messages.

@Wanou38
Copy link
Author

Wanou38 commented Dec 28, 2024

I don't have a system manager app or any app that allow managing auto start or cleanup.
I also looked if the issue was not caused by others apps. Blokada and "yet another call blocker" have been uninstalled, with no success so far.

@antodc
Copy link
Contributor

antodc commented Dec 28, 2024

Sorry if I ask you, but is there any chance that you hid/deactivated it? My understanding is that System Manager is preinstalled on Blackview devices.

@Wanou38
Copy link
Author

Wanou38 commented Dec 28, 2024

@Wanou38 Do you have a System Manager app on your phone? It has an icon with a shield. If yes, open that app, select 'App management' and then select Fossify Messages in the 'Auto Start Management' and 'Auto cleanup' sections. No root permissions are required. If you do not have any System Manager app, forget my messages.

@antodc I finally discovered the system manager on my android 11 phone and the trick works. I still have two android 10 devices where no system manager can be found

@antodc
Copy link
Contributor

antodc commented Dec 28, 2024

Very glad to know!! 😉
Just found out this article (https://dontkillmyapp.com/blackview). It claims the ‘solutions’ should work with Android 10, but no idea whether it is indeed true.

@Wanou38
Copy link
Author

Wanou38 commented Dec 28, 2024

@antodc Your link was usefull to fix the issue with a BV4900 (android 10), by whitelisting the message app

With a BV Tab8 (android 10), the "autorun" and "close app on lock" were in the battery settings.

@naveensingh
Copy link
Member

On AOSP like ROMs, default Phone & SMS apps have zero battery restrictions.

There is a REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission that we can use to request unrestricted background activity but if memory serves me right, apps have been suspended for using that. It probably won't have any effect on these devices anyway.

Closing this as it is more or less already resolved.

@naveensingh naveensingh closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2024
@naveensingh naveensingh added wontfix This will not be worked on and removed device/software specific Issues that only happen on some devices or with some specific hardware/software bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Dec 28, 2024
@Wanou38
Copy link
Author

Wanou38 commented Dec 28, 2024

The query was not to add REQUEST_IGNORE_BATTERY_OPTIMIZATIONS but to run it at startup and add it to the whitelist of apps that system should not stop.
Without these settings, Fossify messages is useless.

In many apps, like Fair email or 'DAVx5', the app check these settings and help the user to fix the issues, indicating what's wrong.

So, if no changes are made to the app to require things that could make troubles with google, users need at least some help.

@naveensingh
Copy link
Member

My point was that there is no way official permission that we could request or action that we could trigger to add the app to the whitelist. The app-killing-optimizers differ from vendor to vendor.

Whenever you receive a message, the system is supposed to start the Messages app with "hey, here's a new message, do what you want" but in your case, the system doesn't seem to do so.

I have created a general issue to add a new FAQ entry for this: FossifyOrg/General-Discussion#268

@naveensingh naveensingh added invalid This does not seem right and removed wontfix This will not be worked on labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This does not seem right
Projects
None yet
Development

No branches or pull requests

4 participants