How will you invoke other apps from the native iPhone app? - iphone

How can I invoke an app from a native app? I want to invoke my app on clicking a mail from the native mail app. For example native mail app list staza app and good writer app when you want to view a pdf file, that is in your inbox.
So what we should do if we want to display our app also in that list?

You can try inter-process communication. Here is some guide

Related

How to send sms with flutter in android and iOS

all my app is base on SMS communication, first I use this sms package (https://pub.dartlang.org/packages/sms) but it's only supported by android. It's work fine for this.
But I need also to implement my app on iOS, so I use this new package (https://pub.dartlang.org/packages/flutter_sms) but it's didn"t work for me... when I try to send SMS to 0123456789, native sms APP call me an error :" wrong format [0123456789]".but I never add [].
I tried also simple_sms plugin (https://pub.dartlang.org/packages/simple_sms) first I don't know if it's iOS compatible, and when I click on "send SMS" I'm redirected to the native SMS app ...
I see that URL_lancher can send SMS, but if I understand, URL_lancher call also the native app to send SMS...
I need something more transparent. So are there an other example to send simple SMS in ios and android or just iOS with flutter, without call a second page ?
thank you
There's no available Flutter plugin with iOS support for sending SMS directly without launching an SMS app. For Android, you can use telephony - this has support for sending SMS directly from your app.
You can also try exploring Twilio. However, this requires a network connection to be able to send an SMS.

How to launch Native App from Web app in iPhone?

I want to access TTS (Text-To-Speech) and STT (Speech-To-Text) functionality of iOS from web app. Since web app dont access ios device functions, is it possible to launch Native app from Web app?
e.g. When user wants to access TTS (e.g. Dragon Dictation), web page will launch Native app, take recording and send the recorded text to web app again.
Or we can access TTS/STT functionality right from web app?
The only native apps you can access from web apps are those with custom URL schemes set up, and the built-in ones e.g. SMS (sms://), phone (tel://), iTunes (itms://) and YouTube (http://youtube.com/watch?...).
If the apps you mention don't have their own custom URL schemes which you can use to get to them, there's no other way you can do this.
I can answer one part of your question - using the functionality of an IOS native app from a web-app;
Apps can be developed such that they respond to custom URL schemes - like, for example, the mail app responds to mailto:// and youtube responds to youtube://. Calling a URL with one of these schemes will start the IOS app - but it's entirely on the developer to code this into their application.
You could therefore in theory develop an app to get triggered from a web-app, perform an action then return to a web app after! Probably not something I would try and do though.

how to invoke a iphone native application from webview

i have a application which has 2 parts one is a webview and other is a native iphone application.
I want to invoke a native iphone application from a website inside
a webview.
If by webview you mean a webpage that you open in Mobile Safari you can link to your native iPhone app by registering a custom URL scheme for your app.
http://www.idev101.com/code/Objective-C/custom_url_schemes.html has a fairly clear description on how it's done.
If you mean opening something like Mail or SMS from within your app, then you can use a URL like sms:// or mailto:

Implement sms scheme function in iPhone apps

is there any code on how to implement the sms scheme in iPhone apps. in addition, implementing this sms scheme will allow my apps interact with the sms apps ma like doing subscription of advertisement or services?
The iPhone SDK does any SMS functionality, either for accessing received SMSes, or sending SMSes. If you need this functionality you should file a bug with Apple.
Using UIWebView embed a html like below
Launch Text Application
New SMS Message
Apple URL Scheme TextLinks
https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/SMSLinks/SMSLinks.html#//apple_ref/doc/uid/TP40008054-SW1

iPhone: How to Programmatically Respond to SMS Messages

After a review of the iPhone SDK documentation, I have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to be running in the background and based on specifically formatted SMS messages would be able to take specific actions.
Does anybody know if this is possible with an iPhone SDK application and if so, provide a pointer to information about how this can be done?
Unfortunately, you cannot intercept - or be notified of - incoming SMS messages with the iPhone SDK.
One possible alternative, is to register a custom URL scheme that launches your application when a url with that scheme is embedded in the sms message and the user cicks on it.
to set a custom url scheme, you must implement both the CFBundleURLSchemes and CFBundleURLName keys in your application's info.plist.
In your Application's delegate, you can then implement the application:handleOpenURL: method to get any paramaters that were passed to your App from the url in the SMS message.
I believe that currently the SDK doesn't allow for background apps (except for apple ones).
BREW and J2ME had (and probably still have) ways to launch your app via specially formatted SMS, which may be what the Jeff is referring to.
Apple does have the upcoming Push Server which will allow you to send the user an alert which will give them the option of launching your app, but you cannot launch your app for them.
Unfortunately just registering an URL scheme dosn't help you at all, because the SMS app makes "http://" urls clickable only...
You can use CoreTelephony framework.But you must user some private api.And I have some demo code for this. https://github.com/edison0951/AppNotifyBySMSDemo