In my app i am opening documents via UIDocumentInteractionController. if no apps is installed in device we want to navigate to app store.In that place i want to navigate to document viewer related apps page.
if anyone can suggest me.
You can open the App Store to an app page by getting the app page url. On iOS, you can go to the app page, click share and copy the url.
Then, you can open it like this (Swift) :
let theURL = NSURL(urlWithString: "app url here")
UIApplication.sharedApplication().openURL(theURL)
If that answers your question.
All you have to do is use iTunes search query and it will navigate to a an 'app like' visual:
http://itunes.com/Dropbox
Where 'DropBox' is your search term. This is what it looks like on device :
Or you can do it to a specific category:
http://itunes.apple.com/genre/mobile-software-applications/id6002?mt=8
Related
I am trying to integrate More Apps button inside my app. When user press this, I want to navigate to App Store and open my developer's app page. Expecting to work iOS 8 and above. If anyone did this before, please give me solution. Thank you in advance.
This can be done by simply having the app open a link. Now this link depends on your developer account. I cannot tell you what your link will be. However, it will look something link this:
https://itunes.apple.com/us/developer/id(some id here)
Note that the id is NOT your developer team ID. I really don't know what this id is. You can find it by navigating to one of your apps on the website version of the App Store called iTunes Preview. Simply go to google and search up one of your app's names like so:
AppName by Muzammil
Once you have opened this page, you will see the link "more by this developer". Click this, and copy the link of that page. Then you can just have your app open that link to show your list of apps on the App Store.
Here is the code to open a link just in case your need it:
let yourDeveloperURL = URL(string: "https://itunes.apple.com/us/developer/id(some id here)")!
UIApplication.shared.open(yourDeveloperURL, options: [:], completionHandler: nil)
Hope this helps!
I have set up Universal links in my iOS app, and it works with full URL like : example.com/path/
Recently, I want short URL like: t.cn/m , which map to example.com/path/ , can be opened in my App directly. So I added appplinks:t.cn at association domain in Capabilities.
But it doesn't work. It can't be opened directly in my App.It's opened with safari and i have to click the "open" button on pull-down-banner in safari to open in my App.
It seems like short URL can't be opened directly in my App, can it?
try applink instead of appplinks
from documentation
I'm looking for a way to uncover directory paths in an iOS app, for the purposes of deep linking.
Right now, I know that I can unpack an app's info.plist file and look for the "CFBundleURLScheme." This parameter usually looks like this:
CFBundleURLTypes = (
{ CFBundleURLName = "BUNDLEID";
CFBundleURLSchemes = ( "scheme", "fb1234567891011" );
},
);
From here, I can construct a basic URL scheme to launch the app to the home page, by appending "://" to the end of one of the "CFBundleURLSchemes."
If I enter scheme://
into Safari's URL bar and hit enter, then the app will launch on my iPhone to the app's homepage.
However, there is another deep link I know works - scheme://upgrade/pro- This links to a specific in-app directory, and when launched in Safari, opens the app directly to the upgrade page.
I want to be able to find a list of in-app directories that I can append to the basic URL scheme to be able to link to actual in-app pages.
Is there a file somewhere in an app's bundle or Payload folder that has a list of defined directory paths?
I hope that made sense, thanks in advance for any guidance!
No. The URL goes to an entry-point in the app that is parsed by code. Each app can do it how it wants. It could just be a bunch of if/else statements.
Best bet is to ask the developer -- if they made these entry-points, they probably want people to know about them.
I have a native mobile iOs app, that shares updates on Facebook. This all works.
When a user shares something through the app, you get the following in the Facebook news feed:
User X shared a link via My iOS App.
You can then click on the "My iOS App which tries to open a URL like "https://www.facebook.com/apps/application.php?id=XXX"
That URL shows the error "Sorry, this page isn't available". On the Facebook developer page I see "This app is live" so I'm wondering why the URL isn't working.
Is there some extra action I need to take?
Select "App Info" on the left side when you are in developers.facebook.com, as shown below
,
and then fill in your app details, and click the button "Create New Page", as shown in the second diagram below
.
This will lead you to the setting up of an app community page for your app. Once completed, select the new page as the app page, and save. The "via" link will go to this page.
check Sandbox Mode should be turn "off"
Have you submitted your app page for review? Go to Edit App -> App Details (left side) -> Submit App Detail Page
Enter your App Store App ID in the settings of your Facebook app. Otherwise, Facebook can't find the app on the device to open it.
The situation is like this:
User opens app from a website using a custom urlscheme
User does stuff in the app
User clicks button in the app to return to the website in Safari.
I have tried opening a new tab containing a javascript:window.close() but this does not work on iOS 6.1.
So my question is: Is there a way to open Safari to view the website the user left from? Either with a working new tab that closes itself or a different route?
When you open the app with your custom url scheme, pass the actual page url as an argument.
mycustomUrlScheme://mydomain.com?objectid=1234&callback_url=encoded_url
In your app, handle the url for the content info and keep the page url to open it afterwards. It will make safari open a new tab. But that should be a good start.
As far as i understand you can do it.
user opens mobile safari for example http://www.example.com
user clicks a link that is appscheme://open and the application become active
user taps a button to open safari for example http://www.example.com?q=test
for the third step you can use [[UIApplication sharedApplication]openURL:url]