How to create persistence between web and native app? - android

Is there any way to track UID across web to app on either IOS or Android. For example we have a mobile website which if accessed by a user will remember it. Then they are directed to download the app and when the app is opened, it would be great for the app to know that the user already opened a particular web page on our mobile web site. Without having a login, is it possible to accomplish this? This article seems to "hack" that process? Is there a cleaner way? http://www.hasoffers.com/blog/ios-cookie-tracking-wrong-mobile-app-tracking/

Related

How to stop developers from opening my website in a WebView?

An unauthorized person has created an android app on our name, logo and showing our website content as is. It has fully functional browser experience in an app. This person is using advertisement to make money using our content.
Our Website: http://www.chittorgarh.com
Fake App: https://play.google.com/store/apps/details?id=davidjack.chittorgarh
What we did in last 2 days:
Complaint to Google. No response so far.
Sent emails to fake app publisher. No response so far.
Created our own official app using exact same way and made it live. We will start pushing it through our website soon. It’s not what we want but do not see any other option.
https://play.google.com/store/apps/details?id=ipo.chittorgarh
Question: How do disable all the traffic from the Fake App?
Tried User-Agent but no luck as it’s exactly same as someone opens the app in chrome on android.
It is basically a web browser within an app, so there isn’t any way around this, if it’s publicly accessible via the web then it’s available to anyone to access or implement within a web view.
All you can do really is create your own app, and add a message regarding the fake app on the homepage of your website.

How to pass information from the browser to an application? (Ios)

An example of an AppsFlyer link would be https://app.appsflyer.com/id111111111?pid=my_pid&c=campaign1
this link redirects to the AppStore.
When we launch / install the app, we have the information inside the (Ios) app.
I thought that maybe some cookies are stored by the browser, and then retrieved inside the app. But in my researches I found that it is impossible to share cookies between applications (Web browser and my app).
Understanding NSHTTPCookieStorage for the iPhone
Could someone list me the possibilities for doing that?
1) Cookies?
2) External storage?
And in android? how would this be done?
Another related question:
Does anyone knows how to use AppsFlyer push/pull API?
https://support.appsflyer.com/entries/23655166-Pull-APIs-Pulling-AppsFlyer-Reports-by-APIs
Thanks a lot
AppsFlyer pass the information to the app using a specific http call.
When a user press on the link the parameters are saved on Appsflyer's servers and the user is redirected to the specific app page on the app store, once the user install the app (with the Appsflyer's SDK) and launch it, the circle is closed and attribution is made.
The Attribution/conversion data is passed to the app via the SDK, cookies are not involved in this case.

Access CloudKit from Android?

Is it possible to use CloudKit Web Service from Android native app? How will that authentication popup window appear in a native app if I want to let user able to modify records?
Can I put a button to the native app, that will open up browser and the redirected content will appear there, and when authentication successfull, specify a callback where token which uniquely identifies users, I guess user record name can be received?
Apple engineer talks about login from web here on this session video: https://developer.apple.com/videos/wwdc/2015/?id=704
CloudKit Web Services is intended "to provide a web interface for users". If you use it to provide a native Android interface, you will probably get your iOS app rejected and lose your CloudKit access entirely.
But if you want to try it, Apple already has documentation for CloudKit Web Services which explains how to authenticate users.
From looking at the session video you mention, and also at the links and comments from Richard, I would say the answer is No to writing full native Android CloudKit apps. The reason is that Apple does not give you the option to enter the userID and password in your own dialog. The user can enter those only in a web window popped up by the apple code. So it seems at least that part of the app (authenticating the user) needs to be done using web code. I am not an Android programmer so perhaps it is possible to put together a hybrid app that addresses this issue.
Having said that, public database access does not require an iCloud account so you may be able to write an app that only uses access to the public part of your container using native Android code.
I am no expert but this is what I read on Apple website.
Use an API Token from a website or an embedded web view in a native app, or when you need to authenticate the user.
Maybe its like Netflix. Because Netflix iOS app looks just like netflix.com. To me it looks like netflix is using embedded web view. Maybe you can do the same with CloudKit.

Android: Sharing app content to a web page

I want my app users to be able to share one of the app pages to others as an external web link as a good marketing strategy, so people who don't have the app can view this page and get excited hopefully to download and register although no one can view the app without signed in, for now I have the app and its web domain I didn't build the website yet, What is the efficient way to do so ?
You can write some code on the server to receive the data, store it and then serve it back (php/mysql or java or anything else). The easiest way to do it is to make a form and to send a request from the android app to simulate a filled-in form.
You could also just publish to Facebook or Google+, there are APIs to do that from and Android app.

Android App - Log into site WITHOUT authentication?

I am working on an Android login app for a service called Netclassroom. There are many for different schools (you can google for one), but I'd prefer not to share the one I'm working on. They're all the same. I want the app to log into the site using given credentials, but I'm running into a problem.
The problem is that it "does not use authentication" and the post request doesn't work? Is it even possible to log into a site like this? By that I mean that I want to enter credentials and get to the member page to parse.
You can make an app that just starts the browser on a particular URL. Here's a post that describes how to do it,
How can I open a URL in Android's web browser from my application?
Further, I think you are asking if the app can circumvent the normal web page login mechanism. Don't do that. There's a login on the web page for a reason. If your app gets around that, then it's decreasing the security that the folks that designed the web page put in place. The correct thing to do is to work with the folks that wrote the website. If they think what you are doing is acceptable, they should make their login cookie longer-lived, or allow the user / pass fields to be stored in the browser, etc.
Again, there's absolutely no rational for making the android app less secure than the browser app.

Categories

Resources