In my android app , I have implemented push notification.My problem is from my device if I disable notification messages for the app, even the toast messages get disabled. Is this a usual phenomenon or do I need to change anything ? Please let me know how can I overcome this.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Yes,it's a usual phenomenon.Click here but it's in Chinese.Hope this can help you.
In such case,it is need to write a Toast by your self.I can provide a demo but it is not complete.You can do some modification to make it better.
}
And here comes the layout file.
I am new at markdown.Sorry for the format.
Writing some extra information in 2018; might help someone.
So whenever you disable app notifications via system settings the
Toast
messages will stop showing up for your app. But this behavior seems to be a choice from manufacturers end.I tested this on Xiaomi, Motorola and Stock android version of which Xiaomi(MiUi) was displaying toasts even when the notifications were disabled.
The solution is to avoid using
Toast
s for improtant information and useSnackbar
instead. But this might cost you time and money.