Is there any way to send notification when user uninstall app. If user uninstall the app the app owner should get the notification that the following user has been uninstalled the appp. Is it possible?
It's not possible from app itself (barring case if there other apps from same author which can check)
But I think there is usable but complex workaround.
App can register for push notifications (either via GCM or FCM). Server side part of part should store app token for this purpose.
If, after some time, server side part send push and get NotRegistered instead (see https://developers.google.com/cloud-messaging/http#error_codes ) this mean app was uninstalled.
edit:
it's possible using hacky way from native code, per Roland's answer in Is it possible to detect Android app uninstall?
The method is based on the fact that the first thing android does when uninstalling your app is deleting your data file. So you could use a file watcher to detect the deletion. Also you need to write this in native code. If you write your code in java, your app will be uninstalled before it could execute any code. please see this demo : https://github.com/sevenler/Uninstall_Statics
Actually answer is no, but you can use one hack way to find out currently app is available in user device or uninstalled.
Registered your app with GCM,and send daily one notification to user, in which day user did not receive notification then you can assume app is uninstall.
I don't know this way is good or not, just i explain may be you can achieve your requirement !
Related
i am working on flutter app(android/ios).
there is a large group of users who currently do not use the application. We want to return them. The first option to use is a push message. But the problem is that in the beginning there was no push support in the application. If I add them now the user needs:
get updates
run the app
give permission to receive push
the problem is that this group of users does not use the application (it is only installed). they will not enter the application and will not give permission - accordingly, they will not receive a push.
is there any alternative option? are these users already lost? any advice - I will be grateful.
The permission for push notifications on Android is opt-in from Android 13, so it is not that big of a deal compared to iOS. If they have automatic updates set on, they would receive the update with the FCM support and will be eligible to receive whatever marketing information you will send to them.
For iOS it is not gonna happen, so unless you have any other way to communicate with your users (e.g. via e-mail address) then I do not see how you could engage them.
Can I use Onesignal to send a notification of order changes to an Android device then if the user already opened the application on order's page/view the notification will be not shown but the order status on that page will be changed?
If yes, can I know the reference of documentation/tutor? If no, what are alternative ways to do it?
I have a project using Onesignal to send the notifications to the android devices. Currently just Simple notif, but my boss asked me to make the mobile app can auto change status order without user action. I'm a backend engineer, not an android dev so I don't know what really works of Onesignal in android. I just know Onesignal can be used to send the notification but what about data process after notification sent?
This is what I understood: Your app has some kind of market or something from which people can order stuff. So, you want to know if OneSignal can send automated notifications as the order status changes?
If I have got it correct, my best guess will be, no. OneSignal can only manually send out notifications. The closest one can get with OneSignal to automations is scheduling notifications to be sent later. To achieve your purpose, your Android devs will probabaly have to write some code on their own and integrate it some way with the order status and all. Or else, your boss will have to appoint a few people who can track the order of the people and manually send out notifications to them using OneSignal (but, identifying the correct device might not be so easy).
That's my guess. But, OneSignal's support team is pretty nice. They might take a few days to answer, but, it's worth asking them if they can help your developers integrate the order status and OneSignal's notifications in some way.
Need some information about how to check whether an Android app is being uninstalled or is uninstalled so that App Server comes to know that a user has uninstalled the app.
Any Help is appreciated.
Short answer is an app cannot know when it's being uninstalled.
An Android application can register a BroadcastReceiver to receive events of other applications being installed, but not itself.
I personally believe that the reason is basically to prevent applications from doing something (annoying to the user) if they're being uninstalled.
ACTION_PACKAGE_REMOVED will be sent to all other app once an app is uninstalled but not itself.
But somehow we can check once in a while, is user uninstalled an app via FCM if a notification is sent successfully that means user is currently using it if it is not then we can say that user may have uninstalled the app.
This may may not provide the actual result but this is the only way available.
I am developing an application and as per client requirement i want to give restriction to use that application to specific number of users and if the application is uninstalled by any user then, the count of users should be decreased and new user can be able to use that application. For E.g if we give 5 users to use the application and if any user uninstall the application then, new user means 5th user can use applicatio
It can be achieved in many ways -
Is there any kind of login mechanism involved in your app? If yes then grant login to your desired users.
Create an API which will check device identification whenever user opens your app.
Hope this helps...
You can create API for device identification. Also,
to check whether application uninstalled. You can take use of GCM Push notification.
Read more here:
https://developers.google.com/cloud-messaging/registration#how-uninstalled-client-app-unregistration-works
"An application can be automatically unregistered after it is uninstalled from the device. However, this process does not happen right away, as Android does not provide an uninstall callback."
Basically, when GCM tries to send the next push notification, the device will tell GCM the receiving application was uninstalled.
For example the client wants to use Urban Airship to send a push notification to users with app version 1.0 only, but not 1.1 or 1.2. They might want to remind users of an old version to update their app, without bothering users who have already updated.
Is it possible to implement? If so, how? As far as I know, there is no way to control that and all registered users will receive the broadcast message. But I just wanted to double check.
Thank you
You must not make this, google will ban your app from the market as they do not allow anymore push notifications sent to the users for advertising another or your own app. So even if there is no way to "select" people exept if you run your own server updated by the app (you cant do it throught google platform ) dont bother to make a server for that as you will be incompatible with Google's App policy.