Can a Titanium app access the ios share features? - javascript

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

Related

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.

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.

Facebook connect with sencha

I'm building a website and a simple app for android and iOS with sencha and I want it to connect to facebook and post something.
I've read the information and tried to implement Facebook Javascript SDK.
It works on the website, when I tap a button the facebook login poped out, asking me to login and authorize the facebook app I created. after I authorize it and got an access token, I can post something to timeline from the web.
However, when I tried to pack it into .apk and install it on my android device it didn't work.
Is it possible to use Facebook Javascript SDK with sencha touch after I pack it to .apk ? or should I be use another method ?
I'm hoping that anybody could help me with that, and an example would be nice.
Thanks in advance.
Write a handler in sencha to call your site's oAuth service for authentication...
Use this authentication for your mobile app... I dont think the issue was due to .apk did you try the same thing in a mobile browser and see if it worked???
The Watch List lets you share which movies you have seen and want to see with your friends on Facebook.
https://github.com/senchalearn/Watchlist

market:// not supported, despite Android documentation

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=

How to access sms inbox from javascript on android (phonegap)

I just discovered PhoneGap and was wondering if there's a way to access the SMS inbox from Javascript with it. Or if there's another easy way to do it in an app created from a HTML/CSS/JS solution.
There's no info about SMS access in the phonegap docs, but maybe the inbox is avaliable as a url or a folder?
I would like to stick with phonegap so that the app would work on many devices, but an android only solution is satisfactory too.
This functionality is not currently in PhoneGap though it might come in a future release. This is something that whole community would probably appreciate!
I think you will want to create a plugin to achieve this functionality for the moment. Some examples of plugins are here: https://github.com/phonegap/phonegap-plugins.
Here is an example of using an Android ContentProvider to interact with the SMS inbox How to delete an SMS from the inbox in Android programmatically?
There is a plugin for doing it with phonegap,
Take a look at SMS reception plugin for Phonegap

Categories

Resources