Chromecast ios api.. Entity not found - ios

Anyone encountered this already?. I downloaded the sample code for IOS from github. I replaced the app id with my own, that i got after whitelisting my device. I ran the app and selected the device and media to cast. Soon after I hit the cast button, I am getting the following error....
Failed to start application (com.google.GCKFramework.GCKApplicationSessionError); caused by: entity not found (com.google.GCKFramework.GCKNetworkRequestError).

Found solution for this one. Once I enabled the Chromecast to send it's serial number to Google, the error went away (for future reference). It can be done in settings.
Source: https://github.com/googlecast/cast-ios-demo-player/issues/5

Related

Airwatch SDK iOS - We were unable to retrieve the configuration information

Using the Airwatch SDK v21.4 on iOS an error is shown:
"We were unable to retrieve the configuration information. Press
continue to try again"
Using Airwatch SDK 20.9 worked fine, but after upgrading to version (21.0 thru 21.4) on iOS the SDK is displaying the error.
The message text can be found in an AWSDK.framework file Localizable.strings within the entry RetryToFetchConfigurationInformation
I can do a fresh install from the HUB app just fine.
After launching the app the UI is not displayed until a successful response from controllerDidFinishInitialCheck.
My controllerDidFinishInitialCheck method does not contain any errors.
After receiving a valid controllerDidFinishInitialCheck result the UI is displayed, followed by a popup alert message with the error.
Advice / Suggestions / How can I isolate this issue? It may be a timeout issue?

Error with Universal Links on phone w/ iOS 13

I am seeing the below error in iOS 13 when trying to setup an app with universal links. Has anyone seen this or know what it means?
I am seeing this error in the device console for the swcd process.
Error getting enterprise-managed associated domains data. If this device is not enterprise-managed, this is normal:
Error Domain=SWCErrorDomain Code=1701 "Failed to get associated domain data from ManagedConfiguration framework." UserInfo={NSDebugDescription=Failed to get associated domain data from ManagedConfiguration framework., Line=250, Function=<private>}
When I install the same app on an iOS 12 device it works perfectly fine. Any thoughts would be appreciated
It seems that upgrading to iOS 13.2.2 solves the issue.
There is no official confirmation about this, but is seems resolved on iOS 13.2.2.
There may be some different places that cause this problem. Note that the format of AASA file seems to be changed recently. Please refer to this.
If the delegate isn't called, and there are some Google Analysis or Firebase features in the app, then it may be caused by method swizzling. If that's the case, please refer to my answer here.

iOS - Property 'isConnected' not found on object of type 'CBPeripheral'

I am trying to replicate an Android App I already made to iOS. I'm trying to make a BLE application where my iOS Device would be able to see and connect to BLE Devices and get the RSSI (I really don't care about the message and other data). Upon a search research, I found this BLTE Central Peripheral Transfer Examplein the iOS Developer Library. Upon downloading, opening the XCode Project, and then ran it. However, I ran into an error shorty after with this code:
if (!self.discoveredPeripheral.isConnected) {
return;
}
where the error is: Property 'isConnected' not found on object of type 'CBPeripheral'
Upon searching again, I found this link. However, it seems that the thread does not have any solutions as the answers discussed also seem to be deprecated. I can't seem to find any solutions for this issue as well.
Has anyone tried to make the code from the iOS developer library work?
The documentation says
Deprecation Statement
Use the state property instead.
isConnected has been deprecated, try this code instead
if (self.discoveredPeripheral.state != CBPeripheralStateConnected) {
return;
}

'Open this page in "null"' Modal appearing from FacebookSDK login after iOS9 and Swift 2 upgrade

I'm in the process of updating projects to Swift 2 and iOS 9. One of the projects I'm doing relies heavily on Facebooks SDK. I use it to login, get user information, ect... Prior ot the update, once you logged in the Safari would redirect you directly to the app. Now I'm getting a fun little modal displaying the following (See Fig 1 at bottom)
I assume this has some connection to the new Info.plist key we add LSApplicationQueriesSchemes with a Item0 as fbauth2 now required by iOS 9.
I also noticed I'm getting a stack trace with my app saying:
failed for URL: "fbauth2:///" - error: "(null)"
I found the reoccurence of the new key data fbauth2 interesting, and I'm assuming that there is now a way to configure what this modal will say upon redirect. Does anyone have any idea how to configure this? I'm assuming this is a common issue for all those updating their apps. Thanks!
Fig 1
Make sure that you have updated to the newest version of the Facebook SDK at http://fb.me/FacebookSDKs-iOS-20150910.zip.
You will also want to Whitelist the Facebook Servers for Network Requests.
More information on this can be found here.
Specifically look at steps #2 & #3.
From the documentation in Step #3 there were also changes to the canOpenURL method:
Why do I see console messages like 'canOpenURL: failed for URL: "fb...://' or ?
This is an Xcode warning indicating the the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning

iOS - AudioUnitInitialize returns error code 561017449

I have an app in the App Store which uses AudioUnit for recording audio.
About once a week or so I am seeing that for some users in the wild the call to AudioUnitInitialize fails with the error code 561017449 which is also 0x21707269 or "irp!".
What does this error code mean? I've been unable to find it documented. Also:
~$ macerror 561017449
Unknown error (561017449) at /usr/bin/macerror5.16 line 40, <DATA> line 1.
There have been few instances of this issue, but so far there appears to be no pattern of commonality as far as device and OS version goes.
I'm not including code as I don't think that will be helpful just yet. The code is working on variety of devices already. At this time I'm most interested in learning details about this specific error.
Thanks!
This is defined in AVAudioSession.h:
AVAudioSessionErrorInsufficientPriority = '!pri', /* 0x21707269, 561017449 */
and is described as "The app was not allowed to set the audio category because another app (Phone, etc.) is controlling it."
After wasting a lot of time I found that this issue is occurring in my device(iPad) just after debugging my current code in it without uninstalling the existing live app.
The record and play permission was creating the issue. So uninstalling then installing a fresh build magically does the job for me.

Resources