What is Loading GAX Client mean? Is this an error? - ios

I'm currently working with build environments and following a few tutorials to load a plist with environmental variables. However I ran into the following in my prompt of Xcode
[Accessibility] ****************** Loading GAX Client Bundle ****************
Nothing should be printing out of my View controllers yet this popped out
Tried to search the web but didn't find anything useful to understand why this was printed out.
Was wondering if somebody could shed some light on this matter. Thanks!

This is just an information. You have "Guided Access" turned on on your iOS device. The accessibility features of iOS inject unexpected libraries into your process and the app will report this to Xcode.

If you do not want this error to appear in your logs you can turn it off.
Follow these steps to turn off Guided Access:
Go to your iPhone settings.
Select General.
Select Accessibility.
Scroll Down & Select Guided Acces.
Turn off Guided Access.
This error should not appear in the logs anymore.

Related

How debug Universal links

I use the cordova plugin "ionic-plugin-deeplinks" (to my knowledge also works with a plain cordova app).
On Android, links when clicked let users choice between chrome and my application.
=> I suppose that app links works
=> As I'm able to access window.IonicDeeplink and redirect the user to the right page
I'm not able to have the same behavior on iOS, when I click a link I always get the app open in Safari.
How can I find clue on issues ?
More context:
apple-app-site-association is got with a HTTP 200 (over https only), it's located in /.well-known/apple-app-site-association:
I checked TeamID and BundleID 5 times (at least);
with the branch.io validator i get all validations green:
Your domain is valid (valid DNS).
Your file is served over HTTPS.
Your server does not return error status codes greater than 400.
Your file's 'content-type' header was found :)
Your JSON is validated.
with the apple validator, I got : "Action required
Could not extract required information for Universal Links. Learn how to implement the recommended Universal Links.
Error no apps with domain entitlements
The entitlement data used to verify deep link dual authentication is from the current released version of your app. This data may take 48 hours to update." (but some devs said that working app add the same error) what to do with that result?
when monitoring server's log while installing the app with Xcode I see a request get a HTTP 200 on apple-app-site-association
while installing the app with Xcode I got no logs referring to swcd in Xcode (I read here that I should if I had error while installing the app). Is a successful installation silent?
I followed that guide to setup entitlements, but some things feel odd with it:
Unlike the snapshot in the guide, I didn't found any *.entitlements file in my project. Should I have one with cordova? (my xCode seems to remember my setting though). Is it possible to check that installed app get entitlements?
I did set my domain in Xcode like this: applinks:mydomain.com and the switch is ON. But I never uploaded any thing from my local dev environment to apple services. Should I have? If yes, how ?
My current interrogations are highlighted but any explanations on any lack of understanding will be more than welcome!!!
Until then I started a verification for testFlight looking for more info.
while installing the app with Xcode I got no logs referring to swcd in xCode
I implemented Universal Links manually, but situation was similar. Particularly I mentioned empty swcd process log while installing the app, and it turned out that most likely iOS didn't even try to download apple-app-site-association file, like if responsible process wasn't run. In my case device restart helped and deep-linking began to work.
Thus I think restarting device is one another step in troubleshooting when you are sure about all your setup.
For anyone trying to debug this in development:
In XCode, ensure you're editing the Debug version of Signing & Capabilities.
To bypass the Apple Universal Links CDN, configure your Debug domains like applinks:?mode=developer -- adding that query string in development is important.
On your iOS Device, go to Settings->Developer->Universal Links and ensure the Associated Domains Development toggle is switched on.
On your iOS Device in Settings->Developer->Universal Links->Diagnostics, enter your Universal Links URL and ensure you get a green checkmark.
After following all of these steps, Universal Links work locally.

iOS simulator can't access any URL and shows the error "This connection is not private"

I've encountered a problem where my iPhone Simulator can't access any of the websites on SAFARI. I am also unable to call any API from my application.
The error shown by SAFARI is either of the two mentioned below:
"This connection is not private"
Refer Screenshot
OR
"Safari cannot open the page because it could not establish a secure connection to the server"
Refer Screenshot
I have done some research on this issue and have come across a few different solutions. But all of them suggest me to:
Uncheck "web-sheilding" in my anti-virus software; OR
Turn on the "Allow HTTP Loads" in Simulator>Settings>Developer; OR
"Erase content and settings" and restart the simulator
None of these solutions are working for me.
Could anyone suggest what the problem here might be?
I'm using Xcode v9.2 and Simulator with iOS11.2.

iOS deeplink works on one devices but not working on other

I've encountered a problem with deeplinks when testing them on several devices. I've found out that deeplinks works properly on ones of them(i.e. redirect to the app exactly) but on the others they redirect to AppStore.
I've read the Branch's troubleshooting guide about this issue(link below) saying that this problem may be caused by explicit prohibition of app links when pressing the button on the upper right corner of status bar.
And I've read that it can be fixed by long pressing the link from the Note app and then clicking "Open in App" button.
But the problem is that there is no such a button at all although the app is installed on device.
screenshot
P.s: I know that my universal links are fully configured and working because as I said deeplinks work properly on several devices and the same button(Open in App) appears in the Note app for these devices.
https://support.branch.io/support/solutions/articles/6000153326-ios-universal-links-troubleshooting-guide
I've found out the solution. When I add my URL scheme that I register on dashboard to my project's info.plist. I started being redirected correctly. But it didn't fix the issue with unemerging 'Open in app' button when long press link. And I cannot block app links. because there is no button in the status bar.
As for devices where deeplinks had worked initially they haven't broken. I still can block app links for these devices and 'Open in app' button appeares.
Amruta from Branch.io here:
If you are facing issues with Universal links configuration, our team has a validation tool that allows us to check various information about your Xcode project configuration to make sure everything is configured properly.
Once the configuration information is collected, the script sends it to Branch and returns a short-link you can follow to view the validation results. For exact instructions on running the script, I'd like to point you to the relevant docs page, found here:
https://dev.branch.io/getting-started/universal-linking-validator/
as well as the validator, which can be found here:
https://branch.io/resources/universal-links/
After running the local script, open the link in your web browser and enter your Branch Key and Secret to view the test results.
If you still continue to face issues I would suggest writing into integrations#branch.io and we'll walk through your integration with you!

iOS universal links not working?

I'm having trouble getting universal links to work
We have added the json content to our site https://couchsurfing.com/apple-app-site-association
I have double checked that it's using the correct team ID and bundle ID
Universal links is enabled in itunesConnect
running the apple validation fails with the following error:
Error no apps associated with url
I thought maybe the validator doesn't work, but running on iOS 10 device (universal link capability on, with added correct domain to it) clicking a valid link does not trigger the delegate methods in AppDelegate
Any thoughts?
After 3 weeks... It turned out my path was incorrect. My suggestion:
set paths to ["*", "/"] while debugging, get everything to work and test, then as the final step update the path and only include supported paths.
To be more specific the link I was trying to register was
site.com/events/123123 so I would add a path for /events which is wrong that would register site.com/events. I had to register /events/* instead
Also the easiest way to test it is to enter the expected links into the Notes app, because Safari has some weird logic on when links should be handled as deeplink.
Apple's app-site-association validator is useless, it's still failing for me complaining about my App id, when deeplinks actually work. Instead use https://limitless-sierra-4673.herokuapp.com/
I've recently had issues debugging the Universal Link functionality of my app.
I was able to get deep linking to work but it seemed to only work 10% of the time. Since I had just updated to iOS 12, I wanted to make sure there was nothing else I had to do as a developer to ensure the feature worked.
So what was causing intermittent failure?
It seems that iOS has a somewhat strict policy engine for determining when background threads can run.
I was able to observe this by USB tethering to my phone and opening up the debug console for my device
Xcode –> Windows –> Devices & Simulators
Click on device in the left pane
Click Open Console
From there, I was able to filter on "swcd" (SharedWebCredential Daemon). Keeping this console open, I was able to see the daemon at work during app install which is when iOS attempts to pull down the apple-app-site-association file for my app.
As it turns out, dasd (DuetActivitySchedulerDaemon) was failing to run the SharedWebCredential Daemon because my phone had restarted recently, then later it was determined that my phone was too hot...
e.g.
{name: ThunderingHerdPolicy, policyWeight: 1.000, response: {Decision: Must Not Proceed, Score: 0.00, Rationale: [{deviceInUse == 1 AND timeSinceThunderingHerdTriggerEvent < 900}]}}
], FinalDecision: Must Not Proceed}
{name: ThermalPolicy, policyWeight: 5.000, response: {Decision: Absolutely Must Not Proceed, Score: 0.00, Rationale: [{thermalLevel >= 20}]}}
], FinalDecision: Absolutely Must Not Proceed}
Developers beware!
I step through Apple's troubleshooting universal links procedure as already mentioned in other answers.
If still not working, and long-pressing the link in mail or notes app fails to show "Open with [your app]" then try restarting your phone. More than a few times this has been the solution for me!
The Apple validator checks some other things that are not necessary for Universal Links to work, and unfortunately that often results on false positive error messages. The file at https://couchsurfing.com/apple-app-site-association looks good to me, and it passes this validator just fine.
When clicking on a valid link, does the app not open, or just the delegate methods don't fire? These are two very different issues and would have different solutions. There are some troubleshooting steps you could try here, though some of those are specific to the Branch.io (full disclosure: I'm on the Branch team) linking platform.
As some sort of completion to the answers above (took me hours to find out):
The app needs to be installed AFTER you added your "apple-app-site-association" file to the server, as the file initially got fetched / checked after the installation.

Ionic Push - Resetting plugins due to page load

I'm building an app and I don't know why (I've check a lot of post on StackOverflow and beyond) when I'm running the app on my iPhone through Xcode I've a message "Resetting plugins due to page load." and the device ID I need for push is not set or given and I'm not asked for push authorization. All of that work with a ionic tab starter project.
I've remove jQuery (for open links in the built-in browser of the device) and retry but nothing change... I've try to remove my AppCtrl who is load before the other view but nothing change. I haven't found solution on the web so far.
Thank for your help,
percypyan

Resources