Android 13 Push notification and device registration in react native - android

I am implementing Push Notification in both Android and iOS in React Native. I am using react-native-firebase/app react-native-firebase/messaging and notifee. In iOS device are automatically registered for push notification and that can be disable by messaging_ios_auto_register_for_remote_messages. And, react-native-firebase has methods that can be used to register and unregister device in iOS.
Android 13 now also has the option to to reject and allow permission. My question is, does the device still auto registered in Android 13 even if the permission is not given for push notification? messaging().unregisterDeviceForRemoteMessages() dosent seems to be working in android.

Related

Can PWAs listen to device notifications?

I have a doubt regarding PWAs. So, using the native android SDK we can through f.e. NotificationListenerService listen to specific/all device notifications like a smartwatch application does when it has to display the same notifications on the watch as the smartphone does. Is this possible to be done on a PWA?
For example, I want to make a PWA that stores all device notifications, so I need my PWA application able to listen to all device notifications (mainly the ones from other applications)
Is this possible?

Receive Firebase silent notifcation on Android when notifcations for that app are off

I am in process of developing off-line event logging system with firebase Push notifications. I have implemented the silent push and it works on IOS even if the notifications for that app are turned off.
Will android act the same way as IOS, where silent notifications will be received, regardless of user settings ?
I don't think you can do that on iOS/Android, maybe on iOS you are not using Apple's APNS to deliver the messages but the Firebase messaging system which requires your app to be running to receive them.
On Android it should be similar but working against the user's will is not encouraged.

Ionic + Cordova : How to receive the push notifications after the system reboot?

I'm using the Ionic push notifications integration for the Android and iOS.
I just switched from debug mode into production (see link: http://docs.ionic.io/docs/push-full-setup). I am able to receive the push notifications if application is running in the background. But when the device is rebooted and the push notification is send, device will not receive the push notification until the app is started.
I would like to ask that is possible solve this situation and how?
Many thanks for any advice.
I've had a similar problem in a project and fixed it by referencing APN & GCM directly on server side and switching to a plugin (https://github.com/phonegap/phonegap-plugin-push) instead of Ionic Push.
Hope it helps.

Android send notification message to device without client app installed on the device

I would like to know is there any way to send notification from a server to an Android device without a client app installed on the device. Does android OS has such functionality. Based on the answer here Does Android support near real time push notification? Google Cloud Messaging do similar things, but it seems the client app need to be installed on user mobile.
Basically what I want do when an android device comes in range of an iBeacon
I need to send the notification messages to the user mobile.
Is there any way to achieve it. Any possible solution?
Edit:
The real scenario is like,
I have the beacon placed in somewhere, when the a device comes in range of the beacon, some how I have to detect the device(if the device Bluetooth is on) and get some id of the device send notification from cloud server. Where as the device(Android phone) don't know the beacon is there, or there is no app installed on the device to detect the beacon.
I am not sure whether it's possible to achieve the above goal in such a scenario.
Please let me know your valuable feedback.
Chrome 42 or higher for Android supports push notifications from websites, which allows you to send notifications without installing an app.
If you're specifically looking to start notifications from a beacon, Chrome 49 added support for beacons

Turn off notifications of an app programatically on Android

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.

Categories

Resources