Push notification without opening app even once? - android

I have an app for device registration, I want users to register their device for warranty. App will be pre install by the OS and I want to send notification for the users who didn't register even if they did not open the app for once. But according to my knowledge it is necessary to open the app once to receive notifications.

Related

How to prevent flutter app, losing permission when not opend for some time?

I saw that new androids, remove permissions when an app did not used for a time!
I wrote a Flutter application that is based on Notifications, so the user, doesn't need to open the application. but the permission for showing notifications is very very important for this app.
I'm using "OneSignal" to push notifications on devices.
Summary: "this is very important that this app doesn't lose permission to push notification on any device! otherwise the app is totally useless!"

Force IOS/android user to check the notification

I am developing a IOS/android app which will used by our vendors, the app will send notifications to the vendors timely, i wonder if there is a way that the vendor MUST click "accept" or "read" for every notification, even he/she disable the notification permission for this app.
so, all of my perpose is the vendor must ready the notification and the server side should be able to know who is not read. the vendors should not has an execuse that he/she do not get a notice while the policy changed.
There is no way to 'force' a user to open a notification, but if you use a Push Notification service (AppBoy, etc) most of them have metrics and can track who has opened the notifications. So if your vendor comes back and says they never got it, you can say yes you did, and which device they opened it on. You could then continually send notifications to those who haven't opened it until they do.
This won't work if they have notifications disabled, though. No way to get past that without building a messaging system into your app.

Not receiving GCM push notification in MI phone if app is killed

I integrated GCM in my project to receive push notification from server. I am able to successfully receive push notification in all the devices (Nexus, Samsung etc), however, I am not receiving notifications on my Xiaomi MI phone.
When the app is running or is in background then I am receiving notification however if I kill the app (by swiping the app away from recent apps) then I don't receive any notification.
In pre-installed Security app there is an Auto-Start feature. Some apps have this auto-start feature turned ON and some don't. My app have this auto-start feature turned OFF. If I turn auto-start ON for my app then I start receiving notifications even if I kill the app.
How can I fix this issue? Please help me out.
Start AutoStart
Open Security App -> Permissions -> Auto Start Management.
Add/Enable your app as auto start apps
Start Lock Screen Notification
Open Settings App -> Notifications - Manage Notifications.
Tap on your App and select all cases.
i got success with this.. Hope it helps..

How does eBay, mail, and other apps send alerts if not running?

We have several apps on our android devices that signal notifications even when the device is off. An example, if we are watching an eBay auction on our PC, and we have the eBay APP on the device, even if the device is off, we get a "chime" and a notification on the top of the display about the auction. Another example, GasBuddy will chime a notification when gas prices are going up in our area.
How do these apps do this, even with the app actually not running?
- Are they "automatically" running in the background?
- Are they periodically, every few minutes as an example for the auction purpose, automatically logging into the internet and checking for an update?
- Is somehow the "service" such as eBay or GasBuddy "pushing" some sort of signal to the device?
- Do they have "another" app running in the background looking for notifications?
They use the concept of Push Notifications. You can use Google Cloud Messaging(GCM) for push notifications.
In short how it works is, the app when launched for the very first time, or when the user logs in, registers an id with the server. The server then at a later time sends a signal to the device (using that id) using push notifications. You need to handle those push notifications in your android app.

GCM push notification works after app Force Stop?

I have used GCM to get push notifications, now if I Force stop the app from the settings on the Android device, will it be able to get push notifications?
I have read many posts that say in this case an app cannot receive notifications.
Is there any possibility to get notifications?
Once you force-stop your app from Settings, your code will not run until something manually runs one of your components (ie the user manually launches an activity).
Therefore after force-stopping your app from Settings, you will not receive GCM messages.
If you want to get notifications you have to manually restart your app.
This is by design since Android 3.1.
Apps that are in the stopped state do not receive broadcast Intents.
Stopped state is:
when the app is initially installed (before the user runs something in
the app) or
after a Force Stop.
You can find more about this here: http://developer.android.com/about/versions/android-3.1.html#launchcontrols

Categories

Resources