market:// not supported, despite Android documentation - javascript

I'm implementing in-app purchase for an Android app from within a web view. The purchase is meant to be completed via Amazon's MP3 app. If the user does not have it installed, I want to open the Market app so they can download it before attempting to complete their purchase.
According to the official Android documentation, the following JavaScript should work:
window.location.href = 'market://details?id=com.amazon.mp3';
However, when I call that, I get a view that is blank except for a link to that link and half an upside-down Android dude poking out the top left of the view (you can't make this stuff up).
Anyone know why this might not be working? I've tested it on multiple handsets all running Android 2.1 and above. TIA for any help!
UPDATE: Thanks to #jtkendall on Twitter for this post that talks about how this behavior changed recently. Looks like this has to be implemented in native code.

Use the Http variant.
http://market.android.com/details?id=com.amazon.mp3
http://market.android.com/details?id=

Related

<a href="fb//"> open post/video Link in native App? [duplicate]

Some dev blogs have published information about the "fb://" url scheme for opening various views in the Facebook iPhone App. No matter how much I've searched, I haven't found one word from any official Facebook source about this.
Since the information is public anyways, I'm sure I'm not the only one who'd like to know, whether using this url scheme is officially approved, am I allowed to use it, does it work correctly, and if it's not approved, will it be and what's the approximate schedule for that?
Thanks in advance for any info on this subject!
It's there to support the iOS push notification system (i.e. you get a push notification that says "Friend's Name tagged you in a photo", and you tap on it, it takes you straight to the photo).
I'd assume it's not intended for third party use and therefore subject to change. Hell, Facebook's public-facing APIs are subject to change on a whim anyhow, so I'd be especially cautious about something they hadn't documented.
It's for iOS only. The iOS API lets you define you own URL scheme, so Facebook must have developed their application to register the fb:// URL scheme on iOS devices. It's not a feature that was created by Apple, it's something you, the developer, can make up.
Here are some resources you can investigate
The Facebook iOS SDK
Here on StackOverflow
A tutorial on how it works (not Facebook-specific)
You can use it from your own applications on iOS, but only if the Facebook application is installed. There are, however, plugins and browser extensions out there that mimic the behavior by handling the fb:// schema on your desktop browser.

Yammer ios app's uri scheme for opening a user profile

I am currently integrating our cordova app with social networking apps such as twitter, linkedin and yammer. The first two apps provide uri scheme in directly opening the user's profile. E.g. twitter://user?screen_name=SREEN_NAME and linkedin://profile/PROFILE_ID respectively.
Now, I am trying to figure out for yammer. There doesn't seem to have much information in the internet. I managed to download the IPA file and extract the info.plist file. There, it shows yammer:// and it does open the ios app. I played around with the combination for opening a profile but did not have much luck. I am wondering if anyone had figured it out already. Would love if there's a yammer developer around here.
Unfortunately at the moment we don't support a way to do this
I have done this in a xamarin.forms app in both iOS and Android environment using Jordan Hewitt's example here: https://forums.xamarin.com/discussion/48089/how-to-open-other-apps-from-xamarin-forms
The URI schema would be defined in Xamarin.forms in MainPage.xaml.cs as:
Xamarin.Forms.Device.OpenUri(new Uri("yammer://threads"));
For native iOS and Android the schema would be same: "yammer://threads"
Hope this helps.

Can a Titanium app access the ios share features?

I want to let user's of my app share stuff by clicking on a share icon and bringing up the ios share page that pops up from the bottom of the screen and shows share options including message, mail, twitter, and facebook. I notice that apps, including the BBC News app have share icons that do this but I can't find anywhere that says how to do this with a Titanium app.
Is it possible? If so how?
I use this widget which brings up the native share sheet: https://github.com/ricardoalcocer/socialshare
You could try out this one: https://github.com/viezel/TiSocial.Framework
It works for iOS6, iOS7 and iOS8 as long as your app uses the Titanium SDK 3.4.0 or above.
It is also discussed here.
Or you could write your own module using this guide https://wiki.appcelerator.org/display/guides2/iOS+Module+Development+Guide

WeChat share button

I am trying to find out if it is possible to create a share button on a website that shares to WeChat.
So just as you would with Twitter or Facebook to share a message or link back to the social network.
Has anyone managed to do this? Or has anyone confirmed that it is not possible?
thanks!
You can use the AddThis service to embed a range of share buttons, including WeChat.
It doesn't seem to support opening the WeChat app with a pre-populated message (like when sharing to Twitter/Facebook) - probably because the WeChat app doesn't support this - but works around it in two ways:
On Desktop: clicking the share button displays a QR code which the user can scan using their mobile device
On Mobile: tapping the share button displays a share URL, a button to easily copy the URL, and another button to open the WeChat app. The user needs to still perform a couple of steps manually, but it's about the easiest it's gonna get.
Hope that helps.
They publish an APK for Android and iOS that allows you to do this from another native app.
As far as I'm aware, WeChat, like WhatsApp, does not support any web browser access so I don't think it's possible.
http://dev.wechat.com/wechatapi
Perhaps somewhere in the API you can create a share button on a website that opens the Android or iOS apps, but I don't think any WeChat access is possible from the desktop.
The answer in this SO question should help you WeChat sharing, how to change re-share description and thumbail?. It refers to a Javascript API WeixinJSBidge http://mp.weixin.qq.com/qa/index.php?qa=3163 with the documentation in Chinese but the code is still readable. Hope it helps you!
I have tried to implement the integration of WeChat on Meteor before. The questions are:
1. Did you have the correct package ID and signature?
2. Did you get approved from WeChat and get the WeChat App ID?
I follow the tutorials and get my app work here: http://blog.sanuker.com/?p=691
Hope it helps! Good luck.

Save site as a mobile shortcut android

I spent a lot of time to search for solution but without result.
I check this topics :
Website Bookmark/ Shortcut Icon for Android Help. Cant get passed standard ribbon icon
Whick is very nice ,but here user must click on bookmark.That`s not what i need. May be button,or automatic script that prompt user for this and created automaticaly.For example something like this :
http://socialmedia.biz/2012/02/21/encourage-visitors-to-save-your-site-as-a-mobile-shortcut/
But it`s work only on Apple devices .. What im looking for is a similar solution for android.
Is this possible at all?
May be the only solution is to create simple app that act like a shortcut to my web page?
The page that is talking about has a mobile version ..
Have you looked here [for Chrome]? https://developers.google.com/chrome/mobile/docs/installtohomescreen
May be the only solution is to create simple app that act like a shortcut to my web page? The page that is talking about has a mobile version ..
If this is "allowed" and doesn't go against too many guidelines, this might be your only option. Basically you'd want to create a one Activity application and all it does is call the default Intent for your web page. This should push the user into the default Browser.
You could put the app in the Google Play store and link to it from the site or a script. I'd call the app something like "SITE_NAME Web Shortcut" and make it clear in the description that the only purpose is to launch the browser -- as previously mentioned this doesnt "feel" like something that should be in an app store, and if users think they're getting something extra you'll definitely get bad reviews.
(I'd also make the Activity with #style/Theme.Transparent)
Please be aware that Chrome has changed the way that installs web apps.
Here are the details: https://developers.google.com/web/updates/2018/06/a2hs-updates
There is an install criteria now:
The web app is not already installed
Meets a user engagement heuristic
Be served over HTTPS
Includes a Web App Manifest that includes:
short_name or name
icons - must include a 192px and a 512px icon
start_url
display - must be one of fullscreen, standalone, or minimal-ui
prefer_related_applications must not be present, or be false
-Registers a service worker with a fetch handler

Categories

Resources