I am looking for best practices while developing in-app payment apps on android?
How do you you store the data on android so that the information is not wiped off by an upgrade nor is it easily visibly to prying eyes? The data essentially says that this user has already paid for the app.
I have worked with many apps that does in-app billing, across other mobile platforms like Java ME, BlackBerry, BREW etc. The one sure way of doing this is to keep information on server. The app can do the processing, and/or any other kind of billing transactions, but the final authority for this should be server side. That way, app upgrades, uninstall etc, will not have an impact on billing (assuming we tie the user to a unique identifier like SubNo, client ID, Phone number, MEID etc).
Related
I am developing an Android app and I am going to sell it to a firm.
So, I will not use Google Play or other app stores like Amazon, etc...
How can I protect my app from other people?
Because we already made a deal with that firm.
That firm will use our app in only ten android devices.
I did not want to work our app on any other devices.
I researched about mac addresses to protect but I am not pretty sure.
I know there might be many questions like my question. But It is different. Actually, I am making a static chart that will show how many devices currently having my Android app installed and how many devices have uninstalled it.
For this, I am creating a uniqueID when the app is installed on a device and saving uniqueID along with FCM token to SQL database on the server.
To Create uniqueID:
uniqueID = UUID.randomUUID().toString()
Now, while I am saving every device with a token and uniqueID to the database. Of course, the device will be considered to have active app installation even when uninstalled the app.
So, I want to add a field in the database as inactive against the device that has uninstalled the app. To achieve this, I am thinking to send a request to the database and update the information when the app uninstallation is triggered.
Is this possible? And if yes, then can anyone please tell me how. Or are there any other method to achieve this. Thanks in advance.
Yes it it possible. You can send a push notification to your app to all your active users everyday from your backend side, and on your Android side, call an API on your server to confirm that you exist. If a client does not confirm his existence in a period of time (like 3 days), you know they have uninstalled the app. This is what Adjust and other statistics do for uninstall statistics.
You can't easily run your own code when an app is uninstalled. It is possible to run code in another app, but that requires that you get the user to install both apps.
In addition to the approach Adib described, you can consider using Google Analytics for Firebase to detect uninstalls of your app by Android users. As shown in the answer to this question, Firebase automatically tracks uninstalls in that case.
Maybe you want to use Firebase Analytics and the event app_remove. Mark it as a conversion and use Functions to remove the user from your Firebase Project(if anonymous) and/or any other data associated with the user(Storage, Database, Firestore, etc.) or anything else you might want to do upon user removal of the app.
I have a question about android codes, I want to understand some developers use some codes to buy or active his app, for example, I have Dictionary and it is not free, but I want user full active dictionary by using a balance of phone number, when the user send me a balance I send to user number to active, please I want understanding that it how?!
It sounds like you are asking about how to bill an in-app purchase to a user's cellular provider.
This is not possible in any general fashion. Android runs on a wide variety of devices, many of which aren't even cell phones. If you want to support in-app purchases, you should probably use Google Play Billing.
I have a local windows app written in java, kind of crm.
Employees register events, like customer future calls, visits, meetings, etc.
I would like to pass these events from windows app to their iphones, so they see the reminder. The information should be registered in windows app, not on the iphone.
Is it possible somehow? I would like to avoid writing and app on iphone.
Is this possible to access address book in similar way? Let's say that Mr A is account manager for 30 customers. I would like to sync their contacts data stored in windows app with his iphone.
Is this possible in the way that it is windows app which synchronizes the data, not the app on iphone?
Thanks in advance
Brgs
Norbert
If I understand correctly, you are wanting to interact with an iPhone from your Windows PC, without having to create an app for the iPhone? If this is the case, I don;t know that this is possible.
To send an alert to an iPhone, there is the ability to send a Push Notification from an external source (such as your Windows PC/app) onto an iPhone. This is what happens in your mail apps on your iPhone - when you get an email on your email server, it sends a Push Notification to your iPhone telling it that there is a new email to read. However, to support Push Notifications, you need to have an app on the iPhone that knows what to do with it. In other words, you will still need an app on the iPhone so that when it receives a Push Notification from your Windows app, it knows that it should display a message to the iPhone user.
As far as I know, there isn't any way to retrieve information from an iPhone from an external source without having an app on the phone. This would be a pretty bad security concern if it were possible.
Accessing or syncing contacts will also need an app on the iPhone that can interact with the contacts and send them back-forth to your windows app.
You may be able to interact with contacts on an iPhone if you have it plugged in via USB. The USB provides a direct connection to the phone, so if you wrote the write Windows socket code then you should be able to talk to the iPhone over the USB and perform some tasks on there. However, I'm not sure whether you can interact with Contacts and other phone information - it is probable that you could only interact with files stored on the phone such as music and videos?
Don't be scared to write an app to do what you want - especially for alerting the user, it is a pretty simple app to write, as it doesn't need to do much processing, doesn't need to have any user interface at all, and all the Push Notification support is already built in to standard iOS libraries.
what you could do if your windows app allows you to is to add those events to outlook calendar and then use the google sync to push those events to a google calendar which is then added in the user iphone. the reminder would then be a iphone calendar reminder. no security leak but little control on the iphone side about reminders.
How to get money from users phone using Java application?
So I want to create simple casual game, I want to charge users if they want to pass some extra layers. I want to create an app first of all for android, it'll be opensource. Than to port in on nokia and other Java enabeld devices. Are there any tutorials\matereals on how to do such thing? May be not on android on something else like Nokia? (BTW I want to transfer money to some banc account on PayPal visa or anething or to my own sim card at least...)
I think you can use the PayPal SOAP API if what you want is for users to buy something in-game.
As long as you can make web requests from your device it is easily portable.
I would start with The Developer's Guide for Android to get yourself acquainted with the platform and go from there. Making money from the product is a matter of pricing it on the Android Market.
Requiring a game to have an internet connection just for paypal could be a little annoying. Maybe consider a binary pricing model where you have a free version without some features and a premium version with all the bells and whistles. This would also make it so that users don't need to use alternative payment methods to what they are used to on the store.
For real JavaTM applications, The Java Store should be coming soon.
(I guess I should include disclosure/disclaimer here. I am an Oracle employee. The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.)