I put a link on a button in an iPhone app (xcode 4.2). The link does open a safari window successfully to other websites, but not to the iTunes Preview pages to specific apps. This problem occurs if the link is entered directly in the code. It also occurs on an indirect link to the app store page--i.e. a page with a working link to an iTunes app page gets there fine from Safari on the mac itself, but not when the page loads up on the iPhone simulator and the same link is clicked.
Any ideas?
Related
I am struggling to use the Web Inspector on my Mac to inspect the webpage on my iPad. This is what I have tried so far:
I have turned on web inspector on my iPad.
I have checked that cookies are enabled on both the Mac and the iPad.
I have connected my iPad up to my Mac with a cable.
On the Mac, under the develop menu I can see my iPad - when I hover
the mouse over the visible tab, the webpage on my iPad highlights with blue. Clicking that brings up the Web Inspector on my Mac.
When I hit refresh in the Web Inspector on my Mac, the page on my
iPad refreshes.
There is obviously a connection between my iPad and my Mac.
However, the rest of the Web Inspector on my Mac seems empty.
The Elements tab is empty. The Network tab shows an empty list (headers only), even after a refresh. The Resources tab is empty. The Timelines tab is empty. The Debugger tab is empty and shows no sources. The Storage tab is empty. And the Console tab shows nothing, despite numerous calls to console.log from my webpage on the iPad.
I have also tried opening a private browsing window on my Mac and tried connecting to my iPad via the Web Inspector from there. Still no joy.
I am using Safari version 11.1.1 on my Mac. I am unsure how to check the version number of Safari on my iPad. I am an experienced Windows user but have limited experience with Macs. Please let me know if there is any further information that I could provide.
Can anyone help me in getting the Web Inspector to work properly between my Mac and my iPad? Many thanks.
This is the link I'm trying to go to from my website's "Download on the Mac AppStore" button:
http://appstore.com/mac/gdollc/zing
This is the syntax Apple recommends at https://developer.apple.com/library/archive/qa/qa1633/_index.html
When I try this link in Safari or Chrome, they handle it well, i.e. Safari will open the App Store app with the main page open at my app's page, and Chrome will do the same after prompting me if I want to open the App Store app.
But in Firefox, I get stuck on a page that shows "Connecting to the Mac App Store"
and a message saying "To use the Mac App Store, you need Mac OS 10.6.6 or greater. For more information, please click here." which isn't appropriate since I run Sierra.
That page is actually hosted by Apple as its URL is https://search.itunes.apple.com/WebObjects/MZContentLink.woa/wa/link?mt=11&path=mac%2fzing
Then a window appears with title "Launch application" with "This link needs to be opened with an application", and it offers me either iTunes (which is inappropriate for a macOS app in the Mac AppStore) or "Choose other Application".
Even if I click on this last option, the App Store app is grayed out, presumably because it thinks it can't handle the link.
Is there something I'm missing to get Firefox to behave like Safari & Chrome?
I disabled all NoScript/AdBlock software on Firefox for these tests. I'm running Firefox 55.0.3 (64-bit).
I've also tried this on another computer with the same behavior.
How to identify whether some particular application is already installed in my device or not through xamarin forms? (I want to achieve in android and ios).
Explanation :
In native windows application I have used one service which give me following data (App Name, App Icon Image, App Id, Publisher Id, Version name).
I have checked whether particular application is already installed in my device or not through App Name, App Id, Publisher Id.
Suppose app is installed then I checked version of the application if its fully updated then "Launch" button display and if it is not then "Update" button display.
If application is not installed then "Install" button display and this button redirect me directly through play store.
Same thing I want achieve in android and ios through xamarin forms.
which things are required through service for android and ios?
How to redirect directly to play store in android and ios?
Method 1:
Try using App Links. You need to install the Rivets component from the Component Store. You can handle the navigation to play store if not installed and else browser based on your URL.
Rivets.AppLinks.Navigator.Navigate("http://any.old.url");
Your app will now attempt to Navigate to another installed app for the URL using App Links, or will fall back to usingUIApplication.OpenUrl in ios/or will fall back to using an intent with a view action in Android, if no App Link meta data is found, or no apps for the metadata are installed.
Method 2:
For example I have handled the situation for facebook app to open a page from my xamarin app but not by using App Links.
Device.OpenUri(new Uri("fb://page/page_id")); // Launch the page in facebook app (if facebook app is installed) from my application.
The above code line when executed, will open the specified facbook page in facebook app. Notice "fb://page/page_id" this is the intent with specific uri provided from facebook. You can read more about it here.
Use Plugin.Share to use CrossShare to open a browser cross-platform from your xamarin app. This I have used below.
The above code will throw an exception if facebook app is not installed, then you probably need to redirect to the play store of Android or the app store of Apple.
For Android:
CrossShare.Current.OpenBrowser("https://play.google.com/store/apps/details?id=com.facebook.katana");
Here com.facebook.katana is the package name of facebook app in android. You can replace with your application's package name if registered on playstore. This will automatically launch in playstore not in browser.
In case of IOS redirect to App store:
CrossShare.Current.OpenBrowser("https://itunes.apple.com/us/app/facebook/id284882215/");
Here id284882215 is the app id of facebook on Apple's app store.
I create an app on Phonegap, as I always did.
I scan the QR code from my iPhone.
It tells me that it cannot open the page.
It used to work up to a month ago.
I also tried to open the page from the iPhone Safari browser, and then click on the "Install" button. I get the same error.
But, when I download the ipa to a folder on my PC, and then upload it to "https://www.diawi.com/" I can install it on my iPhone.
But I need to copy the link to the Safari.
I have a paid app in PlayStore (android) and AppStore (iOS). I'm developing a free app which have similar functions as the paid app but with ads banner at bottom and a time limitation when playing. In this free app, there is a button to allow user upgrade/install the paid app, when user click on this button, the app page on PlayStore will be displayed if the free app is playing on an Android device. Otherwise, the app page on the AppStore will be displayed (the free app is playing on an iOS device). How can I do this in CodenameOne?
You will need to use:
Display.getInstance().execute(url);
For Android see here how to build the url:
How to open the Google Play Store directly from my Android application?
For iOS see here how to build the url:
How to link to apps on the app store