How to share data between browser and my app - ios

I'm building chat app for iOS using Xamarin.
My user starts with the browser version of my chat (using their favorite browser) and then can decide to download my app and continue from there.
My question -
On the web, I create cookie with userID. I need to pass the userID to the app to keep the user in context. How can I do it?
Thanks,

Related

can an iOS app read data written by my website?

I would like to redirect from my website to the AppStore to let users download my app. Afterwards, as soon as the user downloads and opens the app I need to identify it. So my question is if my website and app can read/write to the same storage/keychain/whatever. Is there a way to do that?

Share content on an iOS native app via messages or email with long enough trial

I'm currently developing an iOS native application, with a custom MySQL database.
Once a user has shared content (media) through the application to a friend (that doesn't have the application) how can I ensure that the trail is long enough so that once downloaded, and registered on the application, it knows and points the new user straight to the shared content.
Each post has a postID stored in the database. How could I ensure that the postID was kept through-out the process?
Thanks a lot, really appreciate any help.
You don't have a "trail" when installing an app. Once your app is installed, you could have the user tap a custom URL (URL Schemes) in their browser that you would support in your app, or do it based on user registration.

Send user to iOS9 app store to update

I would like to send a user to the iOS app store update page so they can update my app when prompted, so I can require that users update the app if the update contains critical security fixes, or something else vital.
I believe that I have found a link that I can send the user to the update page, which is
itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=<appid>&mt=8
So in my case I would use
UIApplication.sharedApplication().openURL(
NSURL(
string: "itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=969701501&mt=8"
)!
)
But I am not able to test it, because I am given a 404 page in the app store when I try
I'm assuming that I get this because the app was not actually downloaded from the app store (it was put onto my test device from Xcode), and I'm unable to test the link because I would need to download the application from the app store if my assumption is correct.
I've looked into using an itunes.apple.com link, but that redirects
to the app page, and although that page does have an update button, phobos.apple.com seems to be better because it only contains information about the update, and the new features in it, making it more user friendly.
Is my link correct for iOS 9, or is there a different/better method to send the user to the app store's Update App page? Even better, is there any way to prompt the user to update the app via an alert (kind of like requesting access to camera roll or location services, but updating the application)
Instead of this, you can open your application via the URL provided by Apple. This will automatically re-direct to your application page on App Store.
For example, https://itunes.apple.com/in/app/ibooks/id364709193?mt=8

iOS migration from Website to app

iOS. I have a mobile web site and a mobile app for the same. i want the user to be able to navigate from web to my app through a link. Is it possible for this feature to be feasible when the app is not installed. I know i can use smart app banners when the app is already installed and this feature can be implemented then. But the main problem i am facing is when the user is asked to install the app (from smart app banners) for a particular page of my website. How can i automatically redirect the user to same page on my app from where he clicked the app banner on first launch of app ?
This is a problem that Branch, the company I'm working for, solves. It's actually fairly simple to explain, but quite a bit more tricky to implement yourself.
Apple doesn't currently allow you to persist information like that through an install (through the App Store), so you'll need an intermediate server. Now, depending on what devices you want to support, this gets more and more tricky. You mentioned you're only on iOS now, but if you expand to Android, this becomes even more complicated (with the fragmentation of Android devices and browsers, etc). For now, I'll just explain for iOS though. It's basically a two step process, starting with the smart banner on your mobile web page.
The smart banner, when clicked, will try to
* Launch the app if possible. We do this by trying to load via the app's URI scheme.
* If the URI Scheme fails (not installed), we send a device fingerprint to our servers based on IP, model, etc. and then send the user to the app store.
The second part is then within the app:
* When it launches, it needs to ask the server if it was launched via a link click. (whether directly into the app or through the app store and now into the app).
* It sends along a similar fingerprint, and then the server (if the device matches) will send back the relevant info (the page id, or whatever you use).
* If the page id is present, you need to present the view controller with that content to the user (you may need to persist this info in your app through a login, if it's behind an auth wall).

AppLinks in iOs app How to pass data to a freshly installed app

If I have a iOs app that has multiple content that a user can access, can I do the following:
Allow a user that is currently consuming a content (stream radio/some streamed video) to post from the app to his Facebook page "I am currently viewing X using APP".(this is clearly doable)
Another user that has the app installed can click the link will be redirected from the Facebook app to my app (o app links seem to be the solution in this case). If the user that clicks the link does not have the app installed Facebook will ask him to install the required app. I understand that all this is possible using Facebook iOs SDK and App Links.
My question is after the user installs the app how will I direct him to the original content in the link (X)? Is this handled automatically by Apple/Facebook? Or will I need a backend server which will track what the user tapped on before downloading the app?
Can the same be done from the native iOs twitter app?

Resources