Application not install on real CarPlay device - ios

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?

Related

Can we compose/receive audio messages with CarPlay?

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.

Can I make an iPhone app to be included in the CarPlay with developer version (without Apple official approval)?

I am sorry that I look around but didn't find answer for this. I am new to ios development and want to create an app and include it in CarPlay to test it. I don't want the app to be public now, just for testing. So is there any developer version I can use? Thanks.
If the accessory(Car audio system) supports iOS app for CarPlay, it must setup at least one, but preferably many,SupportedExternalAccessoryProtocol parameters in their IdentificationInformation message
Starting with iOS 12, many CarPlay APIs are public. Once you add the respective entitlements, you can develop a CarPlay app even without Apple's blessing. See How to test an iOS application on the CarPlay simulator for more details.

Make iOS application run at startup iPhone or iPad

I would like to do my app open when iPhone is turned on. I saw that have some people saying can be using voip key in Info.plist but I tried and can't to do that. Do someone have any idea to help me? Thanks
In short, iphone does not have any access to permission to edit about "onboot" or "onstartup."
Thus, without jailbreaking this would not be possible.
Check the links I provided on your comment.
This would not happen, your app will be active in background through pushkit only when your app dismissed before device goes off.
VOIP - The app provides Voice-over-IP services. Apps with this key are automatically launched after system boot so that the app can reestablish VoIP services. Apps with this key are also allowed to play background audio.
Even with "voip" present in "UIBackgroundModes" in "plist", iOS App does not auto start after device reboot in iOS10
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW1

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.

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.

Resources