No toast notifications in Locus 3.18.9

Bucky Kid shared this problem 4 years ago
Solved

Hello, latest Locus version doesn't show any toast messages such as GPS on/off, track operations etc.

Comments (5)

photo
1

Hello Bucky Kid,


please check settings of Locus Map in device manager. There should be section called "notifications", so check if it's enabled for Locus Map - "Allow notifications" is turned on. There should be no other reason.

photo
1

Hello menion,

Thanks for the hint. Since previous versions where toasts worked I didn't change any system settings. I have checked notification settings for Locus, everything is enabled including floating notification, in device manager device admin is enabled. But you're right that it is probably ROM related problem because on another device toast messages are showing and downgrading Locus version doesn't seem to repair the problem. I remark that another apps can show own toast messages.

photo
1

Hmm quite interesting. Locus has no internal settings like display notifications yes/no. So if they do not display, there have to be some settings in system that affect this.

I am sorry, I have no idea how nay I help here.

photo
1

I have realized that last time Locus displayed toast messages was before Android update.

It is possible Locus is not compatible.

I viewed logcat while running Locus and I'm getting this line every time Locus should display toast: E/ManagerSuperToast(16959): displaySuperToast(o.atc@235b8191)

But no error message. Is Locus using some extension?

If you have access to phone with MIUI 8 please test the problem.

Maybe using standard monochromatic toasts would work, these still work with other apps.

photo
photo
1

Hmm is in logcat more lines with "E" character after mentioned one? If so post me few more lines before and mainly after this one. And yes, this comes from Locus and no, I do not have Andoid with MIUI available.

photo
1

Yes, there are more E lines. I think the author of SuperToasts should update the component to work on latest MIUI. My suggestion is Locus detects if hosted OS is MIUIv8 and in case of match, use system black and white toasts, because still better than none.


http://pastebin.com/6YSxUC7j

photo
1

Black & white? Never :). Thanks, I'll check it once I return from vacation in second half of September.

photo
1

Thanks, have a nice holidays.

photo
1

Hello,

thanks for a logs, unfortunately creator of this small library did not added correct logging so there is no useful information for me. I've improved this, so please create for me log once more with next Locus Map version (or with next Beta version), thank you.

photo
1

Hi menion, I finally got to tracing the bug.

Here's the logcat part related to SuperToast:


  1. E/ManagerSuperToast(24956): displaySuperToast(o.auv@3b8df45a)
  2. E/ManagerSuperToast(24956): android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@14b61b7c -- permission denied for this window type
  3. E/ManagerSuperToast(24956): at android.view.ViewRootImpl.setView(ViewRootImpl.java)
  4. E/ManagerSuperToast(24956): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java)
  5. E/ManagerSuperToast(24956): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java)
  6. E/ManagerSuperToast(24956): at o.aus.handleMessage(:2186)
  7. E/ManagerSuperToast(24956): at android.os.Handler.dispatchMessage(Handler.java)
  8. E/ManagerSuperToast(24956): at android.os.Looper.loop(Looper.java)
  9. E/ManagerSuperToast(24956): at android.app.ActivityThread.main(ActivityThread.java)
  10. E/ManagerSuperToast(24956): at java.lang.reflect.Method.invoke(Native Method)
  11. E/ManagerSuperToast(24956): at java.lang.reflect.Method.invoke(Method.java:372)
  12. E/ManagerSuperToast(24956): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
  13. E/ManagerSuperToast(24956): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
  14. E/ManagerSuperToast(24956): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:163)

I would suggest to change ticket title to No toast notifications on MIUI 8 as the problem seems be related to that OS (more users on same OS will confirm or negate the trouble).

I've taken a quick test of same Locus version with same config on backup phone with CM12. Toasts show properly.

photo
2

Thanks Bucky Kid,

I've found exactly same reported issue in GitHub page of SuperToast library ( https://github.com/JohnPersano/SuperToasts/issues/88 ) . It's just the library that display these small popups. So I'll be watching progress on that page. Sorry, for now, I have no simple solution. If there won't be anyway no solution, I'll create some workaround that display old good notifications from Android in such cases. Thanks

photo
photo
1

This problem seems be corrected in MIUI 8.1 (dev)

photo
1

Aaaah, these are answers I always like to see. Thanks Bucky Kid, appreciate your feedback. To be true, I'm really really glad it works, because creating mentioned workaround will be task on quite long time ... perfect.