Sending email with appgyver, steroids - android

I have installed the emailcomposer plugin for appgyver,steroids.
How do I actually use it to send a email from a form?
I dont really know how to implement the plugin in my app, anyone that used it care to share some info?

There are usage instructions in the plugin's readme, so just call
window.plugins.emailComposer.showEmailComposerWithCallback(callback,subject,body,toRecipients,ccRecipients,bccRecipients,isHtml,attachments,attachmentsData);
with the data from your form. This should open up a new screen where the email can be sent.

Related

Android open email client with html content in cordova

I am making application in ionic and one of it's functionality to send mail so i have used plugin
problem is i am not able to generate link for android with gmail version > 6.10
Also tried to send mail using apps Gmail, Outlook, Bluemail every mail client giving different output.
Gmail version 6.10(ok) but 6.11(not generating links)
Outlook giving blank result (not event text as other mail client gives)
Bluemail same as Gmail
I'll be thankful if you have any solution of this.
EDIT
Sorry if you misunderstood "generate link" means using html content(<a href="...">)
Was using the plugin myself also, lots of problems and poorly maintained, just check their Github issues page to confirm, use this instead and you can specify to send via email using .shareViaEmail and include link in there.
Use var bodyText = document.getElementById("aaa").href; to get value for link, surely you must have <div><a href=‘YOURLINK’ id='aaa'>texthere</a></div> in HTML. Then pass it as as a message .shareViaEmail("PASS IT HERE",

Android Referal System withing my app

I want to make an app which will pay users money on downloading another apps from within my app, so how can i track that user had downloaded that app or not, and i want to make sure that after user registered in the downloaded app then only he/she is going to get money, so how can i do this.
Some examples of these types of apps are : Ladooo app, TaskBucks App, Pokkt App,
I found following links which helped me somehow but it is not clear :
http://android-developers.blogspot.in/2010/12/analytics-for-android-apps.html
https://developers.google.com/analytics/devguides/collection/android/v4/
you can retrieve the list of installed applications in the following manner
// retrieve the list of installed applications
List<ApplicationInfo> apps = mPm.getInstalledApplications(0);
can get the package name of the app through
String pkg = apps.get(i).packageName;
I know this is not the full answer but i hope this helps
Not Sure About your requirement or not have idea about playstore api but can give simple logic for this, hope it will help.
When any user share or refer the application for download to other user, create one unique id from the serverside(combination with user who refer) in simple word redirect url to playstore with uniqueid and share that link with intent.
When user register you can check or if redirect url for playstore is via your server than you can send money or points when redirect link callback on server.
check this
or you can refer some codes on github:
here or here

how to make email app in Android?

today I'm working with network in Android.I want to get mail from Gmail/Yahoo account and show them in textbox.Can anyone teach me how to fetch mail content ? I need a point to do it.
You can use javamail – android jar files to get and send email from android. From following you can also find a example to send email using android. This work is based on the opensourced version of JavaMail and activation (JAF) available in the glassfish repository, and some parts of Apache. You can find these files to download from this link https://code.google.com/p/javamail-android/downloads/list.
For Receiving email you can use following link. this link will be helpful for you http://www.javatpoint.com/example-of-receiving-email-using-java-mail-api

I keep getting Validation Error: client_id provided in the request does not match any of the registered clients

This is driving me MAAAADDDD
I'm trying to implement "Log In With PayPal" on Android.
I'm using this sample app to try to get the login screen to show up. https://github.com/SeraphimSerapis/PayPal-Access-Android-Example
I have created an app on the https://devportal.x.com/ website as instructed, I just want to use OAuth 2.0, I did all the settings, no luck.
Also, followed the answer in here https://stackoverflow.com/a/16199165/546439 i.e. created a seller account on developers.paypal and clearly chosen login with paypal access and credentials etc, still no luck
I don't even know whether I should get the credentials from x.com or paypal.com, each of them give the same options but they return different keys, I am so lost.
Please help.
UPDATE: added auth URL I am sending
all of these are not working
https://identity.x.com/xidentity/resources/authorize?client_id=AXbPkxDchMYBBAWn2UExvLytvvbJDDXn6u-9nWNgF_J7SZmwQkdDTwxHkuKe&scope=https://identity.x.com/xidentity/resources/profile/me&redirect_uri=http%3A%2F%2Faccess.com%2Findex.php&response_type=code
https://identity.x.com/xidentity/resources/authorize?client_id=ATL6BhBqBYAwJnolhJDT04El5GtxxDzTMAQEb5kkCdZVDrMr_v5bWlPpw7nN&scope=https://identity.x.com/xidentity/resources/profile/me&redirect_uri=http%3A%2F%2Faccess.com%2Findex.php&response_type=code
https://identity.x.com/xidentity/resources/authorize?client_id=6956fcaf5d9fb4bbea22af7ce7f4cc7a&scope=https://identity.x.com/xidentity/resources/profile/me&redirect_uri=http%3A%2F%2Faccess.com%2Findex.php&response_type=code
This error meaning that you are sending wrong client_Id "or not sending it" within the URI asking for token which is sent to authorize URL /authorize?client_id={client_id}, please share your URI to check it.
client_id string Unique client identifier obtained through the
application registration process. Required.
from https://developer.paypal.com/webapps/developer/docs/api/
I stumpled across a similar problem. I already hat an REST app running and tried to implement PayPal Login. Everytime I tried to use the sandbox client_id I got the same error message as you.
Took me some time to figure out, that, in my own stupidity, I tried to call
https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize
instead of
https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize
Now everything works for me
I had faced the same issue, I know this is a old issue and my solution may not be of much help. But I felt like sharing my fix.
I use devise for authentication and I wanted to implement PayPal login.
I configured omniauth for paypal inside config/initializers/devise.rb file. But by default the authentication path was "https://www.paypal.com/". As #Ello mentioned in his answer we need "https://www.sandbox.paypal.com/" url path for sandbox.
Then I figured out that we can change the url path to sandbox by passing sandbox as true in omniauth configuration.
So this is what I did in devise config file to resolve the issue
config.omniauth :paypal, PAYPAL_CLIENT_ID, PAYPAL_APP_SECRET, scope: PAYPAL_PERMISSIONS, sandbox: true

facebook private message using url

i'm doing simple android project using phonegap. I have to send private message to my friends in facebook from my application. Is there any way to send message through Url?
Until recently Facebook didn't support the send dialogue on mobile, so you couldn't do that.
With their push of Facebook messenger, they started supporting private messages on mobile - https://developers.facebook.com/docs/ios/share#message-dialog
Not idea if there's a PhoneGap plugin that supports it, I'm looking for one as well...
Check Direct URL Example section in send dialog page
https://www.facebook.com/dialog/send?app_id=123050457758183&
name=People%20Argue%20Just%20to%20Win&
link=http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html&
redirect_uri=http://www.example.com/response
This is a sample link given in documentation.
On m.facebook.com, no display is needed, nor is any other display than 'touch' allowed as we always default to 'touch'.
So that doesn't seem to solve the problem.
Facebook says it's a bug by design https://developers.facebook.com/bugs/507406422635550?browse=search_511bd57f912f84e18364257

Categories

Resources