Opening a WhatsApp chat from a website in IOS & Android - whatsapp

Is it possible to open a chat with a given phone number in WhatsApp from an website on IOS & Android? If so, how?

Have you tried creating a link like so?
https://api.whatsapp.com/send?text=Check%20this%20out
The text parameter lets you pre-fill the chat box with some .. text : - )
As far as I know, you may also specify the recipient's number like so
https://api.whatsapp.com/send?phone=4917241077
Just make sure you add the country code properly (49 would be Germany in this case)
Of course, you may combine parameters. I gave this a quick test yesterday since I need it for a project of mine and accessing this link on desktop opens the WhatsApp web chat. Doing so on a mobile phone opens the app.

It seems like this is not possible from within websites. Time to rest my case.

Nowadays it is explained here on their website:
Use https://wa.me/{number} where the {number} is a full phone number in international format. Omit any brackets, dashes, plus signs, and leading zeros when adding the phone number in international format.

Related

Selecting English in the Whatsapp API link

I hope this is a do-able thing.. I have my website where I link certain services to have us contact via Whatsapp using the link below:
https://api.whatsapp.com/send/?phone=97112345678&text=Hi+there%2C++I+would+like+you+to+book+for+ABC&app_absent=0
PS - I wrote a random phone number 97112345678 above. This can by any phone number with whatsapp.
On the desktop version of my site, this page opens up in Arabic for now since I am accessing this in UAE. Can I append something in the URL itself to land the page in English always? I tried "lang=en" as a guess but did not work.
link below showing the language
The language setting for your WhatsApp needs to be done on your mobile device. Follow the steps below to change your language. (Note that if you don't see the option below, it might not be supported in your country.)
Open WhatsApp.
Tap More options > Settings > Chats > App Language.
Select the language that you want (English).

Change Google Custom Search layout from mobile to desktop?

I am currently developing a website that uses Google Custom Search and need to do some heavy CSS customisations. The thing is that I need it to be consistent between desktop and mobile layouts, as currently it is working fine for desktops, but looks broken on mobile phones due to the missing page numbering (on desktop it is 1 to 10, whereas on mobile it just shows: < Page 2 >).
Is there a way to trick Google CSE to always use the desktop layout, even on phones? I tried setting the UA string using Javascript in the website, but it did not work.
You can set the "mobileLayout" Search Element attribute to "disabled"
See https://developers.google.com/custom-search/docs/element#supported_attributes
example: <div class="gcse-search" data-mobileLayout="disabled"></div>

Implementing "Rate application" functionality on a Windows Store app

I am trying to implement rating functionality in a Windows Store application using HTML / Javascript.
I am showing a popup dialog similar to the one below within the application and when "Rate" is clicked I would like to redirect to the Marketplace where the user can then rate the application.
This is a task that can easily be done on Windows Phone 7 via the MarketplaceReviewTask.
Is there an API on Windows 8 that I could call to have this achieved?
The Rate and Review link in the Settings charm will automatically appear for users other than yourself (since you can't rate your own app).
If you want a custom link somewhere, you can use LaunchUriAsync like Jim says, using this URI:
"ms-windows-store:REVIEW?PFN=[my-pfm]"
where my-pfm is "Package Family Name" which you will find in your application manifest.
Here's a blog post I found that's helpful:
http://www.andybeaulieu.com/Default.aspx?tabid=67&EntryID=227
If you use protocol activation (LaunchUriAsync) with the URI format suggested here you'll get to your app's page on the Store; however, there's still an additional step for the user to click Write a Review. There may be a way to deep link to it and I'll update if I find out.

Create an iPad application for sending the selected photo as an attachment in an email

I need to Create an iPad application for sending the selected photo as an attachment in an email.
The TO and CC address can be typed or must be able to select from contacts if they have email address added.
As I am a new guy in iPhone/iPad application can any one provide me a good way to do it. Any sample apps, paths to refer.
I recommend you take a look at MFMailComposeViewController in the documentation. The examples there will help. You'll want to include the MessageUI.framework as well. This should get you going with mailing within an app.
For the picture side, check out UIImagePickerControllerDelegate.

how to embed mobile number with the url

How can i embed a mobile number with the external link using objective c.
objective-c.
I have a link from my local server. This link will give some offers according to the users mobile number. I have hard coded the link with the mobile number. Now i wanted to get the mobile number in one variable and parse this variable along with the url which is coming from my local server.
The link which i hard coded will be like
http://123.1.241/eService/service.asmx/offers?mobilenumber=1234456789
Instead of giving the mobile number here itself, i wanted to store this number in one variable and use that variable in the link itself.
Depends really on the platform. On iOS for instance, you can craft a link like this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"tel:1234456789"]];
That'll prompt the user to verify that they indeed want to call that number, opting to present them with the UIAlertView the system pops up, with a "Call" and "Cancel" button.
phone number url looks like this: tel:1-123-456-6789