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

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

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.

Can I use Apple CloudKit JS in a Cordova app on non-iOS devices?

Now that Apple has made CloudKit JS available, would I be able to use it in a Cordova / Ionic app?
Specifically, (how) would the (iCloud) user authentication work on non-iOS devices? (I assume all users would have to have an iCloud account.)
Users will be able to sign in with their Apple ID and if they don't have one they can register right in the popup authentication screen that Apple is providing for CloudKit on the Web -- New users without any IOS devices get an initial 1G of free personal storage.
Since it's only JS, I don't see anything that would impeach you from using it within Cordova. It's made to be implemented in web-apps, and almost anything that a web-app can do, Cordova can do it too.

Recording a Call in PhoneGap?

Are there any Plugins available for Recording a Call in Android using PhoneGap? Or some guidance on how to implement it!
Thanks.
I don't think that this is possible at all. I hope the phone will protect the calls from beeing recorded by any app.
This is not a matter of phonegap.
edit
I found some apps, that can record calls at android phones.
Basicly it would be like audiorecording:
http://docs.phonegap.com/en/3.0.0/cordova_media_capture_capture.md.html
The only thing would be to detect the phonestate. Now the trouble may start, because your app is send to background and maybe will be paused.
There's not one that I can find.
Here's the documentation on creating a plugin for phonegap 3.x:
http://docs.phonegap.com/en/3.0.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide
And here's a tutorial on writing a plugin for phonegap 3.x:
http://devgirl.org/2013/09/17/how-to-write-a-phonegap-3-0-plugin-for-android/
You'll need to have this file stucture
src
android
ios
www
plugin.xml
You can also put more platform folders inside of src depending on which ones you want to support. plugin.xml includes all of the instructions for phonegap to be able to automatically install the plugin for each supported platform.
Here is an example of a plugin that's been upgraded to Phonegap 3.x.

Push Notifications/Messaging in HTML5 web App

I am looking to integrate Push Notification in my Jquery mobile web App using PhoneGap for Android. Is there any solution to put cloud messaging in web app like push notification.
My app is based on getting friends location and checked in new location so i was looking for messaging or push notification in web app.
i am also read about http://www.html5rocks.com/en/tutorials/eventsource/basics/
but this was not helpful for me.
If real time Push Notification not possible in HTML5 web app Please let me about asynchronous messaging like offline messaging in my app.
I recently implemented realtime messaging with the WebSocket protocol, it is easy to implement, very performant and it supports encryption.
Try Urban Airship. You get 1 million free push notifications every month.
It is also working with Phonegap.
Link: http://docs.urbanairship.com/build/phonegap.html
ScaleDrone allows pushing to (and from) PhoneGap and web. It will use Websockets if possible and other technologies when Websockets are unavailable.
There is an API for this: http://www.w3.org/TR/2014/WD-push-api-20141007/, but I wouldn't count on platform support here. However, since you are using PhoneGap, you can integrate your app with native cloud messaging. Here's a tutorial.
Push Notification can be implemented. If you are using Phonegap, PushPlugin ia a good available option. This plugin is for use with Cordova, and allows your application to receive push notifications on Amazon Fire OS, Android, iOS, Windows Phone and Windows8 devices. ALso it is free to use.
The Android implementation uses Google's GCM (Google Cloud Messaging) service.
For detailed implementation guide using Android refer Android section in this link.
Hope it will answer your question. this is late answer here, can be helpful to you as well as others looking for similar kind of solution.

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

Categories

Resources