Mobideck / appdeck

AppDeck is a mobile hybrid application engine for iOS and Android.
http://www.appdeck.mobi/
47 stars 22 forks source link

Send sms #49

Open myannr opened 8 years ago

myannr commented 8 years ago

Hi, I try to send sms with appDeck but when I use sms: in a link, appDeck try to open another page as a web link, s it does never call the sms function of the phone.

Is there a way to do it ?

Regards

ghost commented 8 years ago

Hi ! Try to use the share API. Share API on Appdeck website User needs to select SMS app to send an sms. I hope that answered your questions.

myannr commented 8 years ago

Hi, thank you for your answer but it's not reaaly what I need. with the sms: function, the number of the receiver is ever selected so, the user can directly send the sms to him.

with the Share API, it's the content that is ever entered, but I do not know what the user wants to say to the receiver.

Regards

mdekermadec commented 8 years ago

Hello, the fact that appdeck does open sms: correctly is a bug.

maybe a workarround would be to use app.loadextern("sms:");

loadextern allow you to open any URL by operating system.

myannr commented 8 years ago

Hi, I try this function but it change nothing on Android. So I am still blocked.

RoboKopf commented 8 years ago

Yes, app.loadextern() works on iOS but not Android. It has been like this early February at least.

mdekermadec commented 8 years ago

Last version add a new Service API: http://www.appdeck.mobi/doc/api_service

You can use it to send SMS/Email and open Web Browser.

AppDeck app on AppStore/PlayStore/Online Emulator should be updated within next few days.

RoboKopf commented 8 years ago

Thank you for this new Service API! Is it better to do (1) or (2) below to open a page in the browser? Or are they equivalent?

(1) app.loadextern('http://www.google.fr/')

(2) app.service.openLink('http://www.google.fr/')

Is app.loadextern deprecated now?