iPhone phone service state - iphone

Is there an equivalent API on the iPhone to determine service state like Android? On Android, the service state is available:
http://developer.android.com/reference/android/telephony/ServiceState.html
Ultimately I want to open a "tel:" URL only if the phone is in service from my app. Thanks.

Related

When we add pwa app to homescreen. Do we get two service workers then for the same site one with browser and one with native app?

So Suppose we have a pwa app say X. When we install that app on homescreen, do we get two service workers one on browser say chrome and one in the native app? How push notifications will work in such cases, do we have to get subscription for native app separately for sending push notification to service worker of native app. And will these notifications appear in app or on chrome browser?
P.S By native app I mean pwa app installed on homescreen
Add to home screen does not add a native app to your device or desktop. It's still using browser resources. There's one service worker and one push notifications flow.

Flutter Web Socket

I have developed a flutter app for WEB and Android I store transaction data using sembast. I want to sync the data between my mobile app and web app just like Whatsapp WEB.How do I implement this without sending data to all the user's but only the specified user with a unique Id.

Customized installation of iPhone or Android application

I want to develop native mobile application in which user will send invitation to his friend to install another companion native application via a link to the application. But in order for this to work I need to pass a custom token or parameters in the link so that when the companion application is installed by the user's friend, this token is parsed by the companion application to display personalized message ( much like query string parameters are passed in the URL for normal web applications). Is this possible for iPhone and Android native applications?
It is not possible on stock iPhone/iOS devices. App installation on iOS devices can only be done through the App Store app or iTunes, which do not accept any additional parameters other than the app identifier in the URLs they handle.

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.

Is there any SMS through data app that is available for iPhone and Blackberry?

I know there's the app called Ping! for iPhone that allows the sending of SMS messages over your 3G connection, therefore it doesn't count as a text message and it acts pretty much the same as the regular iPhone texting software. Is there any app like this that's available for both iPhones and Blackberrries?
Google Voice allows you to send and receive messages through a web frontend. Because it is just a web page, it should work on any phone with a data plan. More info here: http://www.google.com/googlevoice/about.html