I am developing an app which supports push notifications.
App is automatically restarting after disabling notifications from device settings.
this happens for android v > 12.
Is this required by system or how can I solve it?
Related
If Android Device Reboot / Power on automatically Open My App without user intervention / Click.
Using Android kiosk mode/Broadcast receiver
In android there is an option to "Hide silent notifications in status bar". It is in Android settings >> Notifications
If the user has that option activated, my app is not able to display notifications (beacuse my app only displays silent notification), and of course the user blames my app for "not working". Is there a way to detect that situation and warn the user to toggle it?
Let me attach a screenshot of that option. I used the Android Emulator using Android release 12-S.
I cannot find that option in my Xiaomi device using Android 13.
I founded it in an OPPO device running Android 13 but in a different place. In this case it was under each specific notification settings and it was activated by default (really annoying!). See screenshot for the Oppo device:
Any idea how to know how that value is set by code? At least in the standard Android?
I have an app that run some security checks and alerts the user using notifications when the device connects to a WIFI network with an specific SSID. The app run checks in background and if there is some security issue alerts the user using notifications.
The issue is that I was using a broadcast receiver for this but with Android Oreo or newer is not working any more. I was reading a lot and I can't find a way for running some background action exactly when the WIFI connection is turned on.
I am missing something or Google has killed my app?
i am using android wear emulator with real device which is already connected.Android wear displayed my message notification but i can not receive any notification when i receive incoming call...
So basically how receive incoming calls with notification in Android wear?
This issue occurs when the Android Wear app (or Wear OS as it's called as off today) on your phone doesn't have the right permissions.
You can fix this by going to your phone's settings > applications > Android Wear/Wear OS > Permissions. Over there, enable the phone permission. You might also want to enable the contacts permissions to let your phone display contact information.
I am developing a package manager application which shows checkboxes to turn off notifications from different applications installed on the Android device.
Since Android 4.1, users can turn off notifications of an app from application manager. Can I turn on/off notifications from an app programatically? Is there an API for doing that?
No, you cannot do that from your code. Perhaps on rooted devices you could do some magic, but that shall not really count for wider audience.
If you are App dev, you should manage that on server side, having a webservice (REST API) allowing the user to unsubscribe to the notifications.
Then implement a Settings section in your App where user can uncheck a notification box and that call this service.
Then, your server will not send the notification to this user.