Can we compose/receive audio messages with CarPlay? - ios

We are working on a app that has feature of audio messaging. Now we are planning to start integrating it with carPlay.
Is it possible with Messaging and Voip that we can send/receive audio messaging with CarPlay?
If yes, can anyone suggest some useful links or demos.

I suppose that you need to use Siri with Messaging:
The CarPlay framework is for use by navigation apps only. If you want to add CarPlay support to your audio app, use MPPlayableContentManager. For messaging apps, use SiriKit’s Messaging-related intents to support reading and sending messages in CarPlay through Siri. For VoIP calling apps, use CallKit with SiriKit’s VoIP Calling-related intents to make and answer audio calls on a CarPlay system.
If you use other "reader" I think you have to get an access for CarPlay from Apple. Contact with Apple to get an CarPlay entitlement (https://developer.apple.com//contact/carplay/). Then build your CarPlay interface, plug in to a car and just play audio using "regular" app's code.

Related

Application not install on real CarPlay device

I add CarPlay integration to my music application.
When I testing my application/CarPlay on simulator all work is fine, but on real device nothing to show. Application Icon not show. Can anybody help me to fix it problem or give me idea how to fix it or what is a reason?
Add com.apple.developer.playable-content
to entitlements. Also when try to launch app on device I got a message error
To run an app on device (and CarPlay system), you need to add a capability to your provisioning profile (CarPlay entitlement). To do that contact to Apple here https://developer.apple.com//contact/carplay/ because CarPlay system allow only some kinds of apps (audio is one of them).
The CarPlay framework is for use by navigation apps only. If you want to add CarPlay support to your audio app, use MPPlayableContentManager. For messaging apps, use SiriKit’s Messaging-related intents to support reading and sending messages in CarPlay through Siri. For VoIP calling apps, use CallKit with SiriKit’s VoIP Calling-related intents to make and answer audio calls on a CarPlay system.
https://developer.apple.com/design/human-interface-guidelines/carplay/overview/introduction/
P.S. Documentation says than CarPlay framework is only for navigation apps, but all CarPlay interface is in that framework. So how can we build audio app with MPPlayableContentManager without CarPlay framework?

How to detect in my app device is currently connected to vehicle Carplay

I googled lot but i did not get any hint. I want callback in my app when device is connect to carplay using cable.
I tried EAAccessory framework (EAAccessoryDidConnectNotification
and EAAccessoryDidDisconnectNotification) for detection. But i can't differentiate device used for carplay or USB(charging purpose), I am getting callback for both event.
Please give me any solution.
Thanks in advance.
Since iOS 12, if you're working on a CarPlay navigation app, you can utilize methods of CPApplicationDelegate. CarPlay audio apps are not provided with such facilities.

A way to selectively deliver UILocalNotifications to iPhone vs Apple Watch?

I'm trying to create a feature where certain UILocalNotifications trigger a sound despite the fact that they are displayed in an Apple Watch, or if that's not possible, are not routed at all to the Apple Watch and just to an iPhone where they can play a sound. Having the watch produce a sound is not ideal compared to the iPhone since I need it to overlay any music the user is playing on headphones.
Obviously the user can disable notifications on the Apple Watch for the app, but there are cases where it is useful to receive notifications on the Apple Watch and that is an all-or-nothing solution.
The Apple documentation states:
When one of your app’s local or remote notifications arrives on the user’s iPhone, iOS decides whether to display that notification on the iPhone or on the Apple Watch.
Is there any information on how iOS decides where to display a notification? Is there any programmatic way to disable notification forwarding to Apple Watch?
You can selectively disable notification in apple watch: http://www.imore.com/how-turn-alerts-apps-apple-watch
See the answer in below link for app’s local or remote notifications guide:
https://stackoverflow.com/a/33581623/2401116

Are iPhone's apps notifications going to be triggered on the Apple Watch by default, without even creating an actual Watch app?

I would like to support my iPhone's app Local Notifications in the Apple Watch from the very first moment the Watch is released, but I don't plan on building a Watch App yet.
From what I researched, it seems like iPhone's notifications will be automatically supported on the Watch, without needing any additional development or WatchKit implementation.
Apps are not required to do anything to support notifications. The system provides a default notification interface that displays the alert message from the notification. However, apps can customize the notification interface and include custom graphics, content, and branding.
Is this correct?
If so:
1. Will notifications on the Watch have action buttons just like configured for the iPhone app?
2. Is there any way I can test that on the simulator to be sure it works as expected?
If not:
3. Is there any way to support only notifications without creating a Watch app?
This is the more related question I found so far, but it's not really what I'm looking for. How to trigger notifications using WatchKit
I would like to support my iPhone's app Local Notifications in the Apple Watch from the very first moment the Watch is released
Yes notifications for your iOS application will work from day one on Apple Watch.
Will notifications on the Watch have action buttons just like
configured for the iPhone app?
If your iOS app already supports actionable notifications they will work with Apple Watch.
Is there any way I can test that on the simulator to be sure it works
as expected?
Good question actually, you can't test your current iOS app's notifications working on the simulator but you can test a custom notification interface from WatchKit.
You should file a feature request for this.
Is there any way to support only notifications without creating a Watch app?
No, you'll need to provide a sample Notification JSON payload as part of an WatchKit Bundle, which requires submitting an Apple Watch app.

VOIP dialer in iOS

I want to create an iOS application which acts as a VOIP dialer.
I need to know does apple allow VOIP Dialing in iOS.? IF yes then what libraries should I use and how?
Apple has allowed multiple VoIP apps in the app store. One option for building an app like this would be Twilio Client which has an iOS SDK currently in beta.
(I work at Twilio)
Of course apple allow the voip application on Apple Store. there are hundreds of app on apple store like bria(counter path), vippi , Adore SIP client..............
Please follow the Below URL:
http://code.google.com/p/siphon/ that is using pjsip integration.
I want to create an iOS application which acts as a VOIP dialer. I need to know does apple allow VOIP Dialing in iOS.? IF yes then what libraries should I use and how?
Hello Dear,
yes, apple allows VOIP Dialing in iOS with swift and C both. as I was making R&D for same then I found the best way to implement VoIP in IOS and android both is PJSip. you can see here. and there are many of open source using this for that see. and for IOS specially see it.
Enjoy your code time:)

Resources