Open Whatsapp intent (with msg & specific contact)


Not sure if its a ngCordova of Ionic 2 question, so if an admin/moderator wants to move it around, please go ahead.

Anyway, i am using the Ionic2-framework for a mobile website, but now i want to make it een APK, and running into a problem. The whatsapp href i use doesn’t work anymore. Chrome on mobile accepts:


This will start a conversation with a user with phone number 0123456789, or ask if you want to add it to my contacts so i can whatsapp with that person.

But in the APK i don’t get it to work, errorlog:

Error loading url intent://send/0123456789#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=intent://send/0123456789}
at org.apache.cordova.CordovaActivity.startActivityForResult(
at org.apache.cordova.CordovaWebViewImpl.showWebPage(
at org.apache.cordova.CordovaWebViewImpl$EngineClient.onNavigationAttempt(
at org.apache.cordova.engine.SystemWebViewClient.shouldOverrideUrlLoading(
at android.webkit.WebViewClient.shouldOverrideUrlLoading(
at org.chromium.android_webview.AwContentsClient.shouldIgnoreNavigation(
at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(
at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at org.chromium.base.SystemMessageHandler.handleMessage(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)

Now that suggests that whatsapp or intent is not present in the app or on my phone.

Anyone who knows where it goes wrong? I did add this to the config.xml:

<allow-intent href=“intent:*” />


Hello @schaap

I need to do the same, could you achieve this?


For now we just don’t use the web app in an APK, but just through a browser, then the intent: url-scheme works fine.

Didn’t find a solution to get it working in an app…


My colleague and i found a solution:

Phone works for Android and abid works for iOS…

You need this in config.xml as well:


i can’t properly understand what u looking for but if u want to chat with specific person in whatsapp then here is the solution.

//in my html or template

//in my controller
$scope.openURL = function(num){,"_system",“location=yes”);

1 Like

You are my hero. On Android all of the solutions I tried work, but on iOS only worked THANK YOU!

1 Like