I want facebook/twitter functionality with my phonegap application for all device iOS, Android and Blackberry. I dont want to change its functionality for my future phonegap apps. Is it possible to code same for all devices like IOS, android and blackerry.
If you don't want to use any plugin, search for posting on Facebook and Twitter with Javascript... you will be abble to use the same code for all devices.
For Facebook : How to upload photos on Facebook event through phonegap?
But for Twitter the question still unsolved for uploading media : How to post image on twitter in Phonegap using javascript
A full Twitter example for updating status (with authentication) : http://www.oodlestechnologies.com/blogs/Twitter-integration-on-PhoneGap-using-ChildBrowser-and-OAuth-for-iOS-and-Android-Platforms
Related
Problem:
We would like to open the mobile devices own share dialog when the user clicks on a button in our website, so that they have their local apps available.
Now: Is it even possible to get to the devices share dialog through the web browser on a phone?
We use only HTML5, CSS3 and Javascript for the websites, so no Android SDK or iPhone equivalent.
Apparently as José said it is not possible to access the devices share dialog directly through a web browser. Further investigations into other possibilities will be done on our side.
Can i create smth like this with JavaScript? Thank you very much for help
Create an Android application that allows to: 1. login to user's Facebook account and retrieve friends list. The list should be then displayed as given friend's profile image + username.
Cordova would assist you in developing mobile applications for various platforms using javascript, html css. Here is their site url http://cordova.apache.org/
For facebook related stuff, You can use facebook's graph api.
I want to share my mobile browser url through whatsapp using custom button...is it possible?
Like that (When i click on button , mobile whatsapp open if it is there otherwise it will display "WhatsApp not Installed")
iOS
In iOS you can use a URL scheme for that.
In a nutshell, URL schemes are special URLs that are registered by native applications so that any other application navigating to that URL is forwarding their request to the native app associated with that URL scheme.
Check out this link on the whatsapp website which explains how to use the URL scheme.
Android
In Android you deal with this in a different way. Android uses Intents and Activities.
You can check out this to a similar question.
This will work
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
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