Is it possible for an app to
Detect whether the last app used by user is WhatsApp.
Open WhatsApp and set text.
Set text directly in the opened conversation.
No, you can not access the app history.
Yes, you can using url-schemes. Read Whats App's documentation.
See 2
Simply No.
You cant access the user history.
You cant open another app within another app.
You cant access another app.
Related
What I want to achieve here is similar to what most apps do, specifically like Youtube. If I share a video on youtube the user gets a link to the video. When the link is clicked the user is automatically taken to the video in the Youtube app (if the user has the app). I want that sort of functionality. My app has different stores on it and information about the store. I want the user to be able to "Share" a store via Whatsapp, sms etc so then when the receiver clicks on the shared link they are automatically taken to that specific store's page INSIDE my app. And if they do not have the app the link must take them to my app's page in the app store to allow them to download it. How do I achieve this in codename one. I looked at the share functionality in the developer doc and the How To section and that only shows me how to share text or images. Not a link to my app.
You can use the ShareButton or it's underlying native share API call (notice this behaves differently on devices as this relies on native functionality).
To share one URL that works on all platforms you need server side code as we have no way of knowing if the guy who will click the link has the same device as you have.
How to make QR code for BOTH Android Market and App Store answers that although it discusses QR codes this is applicable to links as well e.g. http://onelink.to/ looks like it could solve that although I haven't tried their service.
The correct answer to this question was actually URL intercepting. http://www.codenameone.com/blog/intercepting-urls-on-ios-android.html You share a url from your app to an external application. When the user opens that lick in an external application the user is automatically taken to your app if your app intercepts it.
I'd like to be able to send invitation in an email to a specific "event" happening inside my iOS app. So I figured I'd need to use custom URL. That's fine.
But I'd also like to be able to handle the user that doesn't have the app installed yet, to be taken to a mobile Safari and to the webpage with installation instructions for the app.
What would be the best way to do it?
I could try the following:
In the email I send a link to a http://www.example.com/joinevent/?id=foo
User is taken to a Safari webpage that sends a redirect to mycustomscheme://joinevent/?id=foo
If the user doesn't have the app installed this redirection won't work and he stays in the Safari - I could then handle the displaying of installation instructions probably.
But this approach doesn't seem "natural" for me. Is there a better/more native way to do it?
Try http://rdrct.it
It is a web service that allows you to achieve exactly this functionality very easily.
Full disclosure - I created rdrct.it
Here's the basics:
Login to the site, create a project for your particular app. Choose a unique code (this could be the name of your app).
You'll then be provided with a URL in the form: http://rdrct.it/uniqueCode
Once you've done that, you need to register the app's ID in the app store, and also details about the custom URL scheme. Tick "Auto-redirect" - what it will then do is try to open the app, and if that fails, it will automatically send the user to the app store.
If the app is opened, then the querystring is also passed to the app, so in your example case, the device will have been served: mycustomscheme://joinevent/?id=foo
It also works across multiple device types, so if you have the app available for Blackberry, Android or Windows Phone, then it will also do the same for those depending on which device type the user is using.
Like I said, I created it, but it should solve your problem.
If you are using Distimo to track you app analytics, they provide a shortlink to your apps that can be used also used to track conversions. It shows a custom page depending on the device used to access. This is especially convenient if you have the same app published in the AppStore, Google Play, Amazon, etc.
I basically need a url to open that will end up at the updates tab of the AppStore app. Preferably at the update screen for my app. Is such a thing possible?
I know you can open the app itself, or even the reviews page for the app. But when prompting users to upgrade, the "buy/free" button is actually grayed out and says "installed". Which is pretty unintuitive. We could just have text that instructs the user what to do, but it would be far better we could go directly the update page for our app. We can remotely update content in our old app, so it would be easy to have button or link that takes them to the update tab, assuming I knew what the magic url was.
There's no such URL. About all you can do is tell the user to check the App Store for an update and block them from progressing further into your app until they've installed the new version.
Someone has found a URI that will link to your app's update page:
how do you link directly to app store app update page?
You'll find the answer in the question. Frankly, I'd prefer an update URI as well.
I have a problem that make me crazy.
From my app, when an OpenIn menu is shown, I'll choose an application to open the file (ex:DocsToGo) and the document is opened for edit.
But after editing, how can I send it back to my app or get the link where that document is saved ? How can I get new content of that file ?
Your app cannot get access to the changed version of the file. The new version resides within the sandbox of the app to which you sent it. The only way you can get the file back into your app is if your app registers as an application that can open that document type. THEN you have to hope that the other application gives the user the option to open the new file in another application.
Another option is to use a third party cloud service for storing the documents. Many apps integration with Dropbox now. If your app and DocsToGo both used Dropbox, then you would be able to both edit the same document and get access to it.
In short: there is no Apple-supported way for your app to send a document to another app and then pull it back after changes have been made.
Your app can't "pull" the changed file, as Mark Suman mentioned in his answer, but if the user pushes it back to you from the other app with a similar "open in..." command, you can implement a workflow where a file is passed from your app to another and back again. When the file is sent back to your app, it triggers the application:handleOpenURL: method in the app delegate (or application:openURL:sourceApplication:annotation: in iOS 4.2+). The URL argument is the URL of the edited file, which your app can then resume working with.
More info here.
Is that possible pop up the UI which comes during the deletion process before deleting the app ? (A UI which has stars, no thanks, rate my app button).
If no, can you tell me whether it is possible to create a screen and send the rating captured to iTunes connect ?
As other people said, your best option is to send people to the review/ratings page on iTunes.
The best open source solution I found for this is Appirater.
I use it in my apps and it works great + it generates many reviews.
You can configure when the popup should show. It basically looks like this:
(source: arashpayan.com)
It was created by Arash Payan, visit his page about Appirater with all the information.
This form always pops up if you delete an app on your iPhone. I don't think you can grab personal ratings out of iTunes but once you gather a sufficient number of votes you'll see the details on your app iTunes page.
You cannot present this UI yourself—it's handled by the OS. You can, however, direct your users to your app's rating page in the App Store app by opening an appropriate iTunes store URL, as documented in the “Heading straight to a review form” section of this article.