# iOS Objective-C Callback URL for Google

**URL:** <https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238>\
**Category:** Get Help\
**Tags:** google, clients, social-connections, auth0\
**Created:** [April 18, 2017, 12:33am UTC](https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238 "2017-04-18T00:33:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 18, 2017, 12:33am UTC](https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238/1 "2017-04-18T00:33:14Z")

</div>

Hi,

I’m working with the sample application for iOS Objective-C. I’m trying to test out the Google Sign-On process. When I test it from the web, it says everything works. When I test it from the iOS project, I’m getting a Cannot GET printout error from the callback.

On this page: [https://auth0.com/docs/quickstart/native/ios-objc#dependencies](https://auth0.com/docs/quickstart/native/ios-objc#dependencies)

For Step 3, what exactly is the callback URL supposed to be?

I know it states: {YOUR\_APP\_BUNDLE\_IDENTIFIER}:///ios/{YOUR\_APP\_BUNDLE\_IDENTIFIER}/callback

But, when I do my app bundle identifier without doing my URL that is for my account this doesn’t work.

It requires the HTTPS://{my\_auth0 domain}

Any ideas what this is supposed to be configured to???

---

<div class="post-metadata">

**Author:** ![walsh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/walsh/32/7074_2.png) [@walsh](https://community.auth0.com/u/walsh)\
**Post date:** [April 18, 2017, 3:19am UTC](https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238/2 "2017-04-18T03:19:44Z")

</div>

Hi Sandy,

I presume you tried the source in the subsequent chapter, in the section that talks about _Google Connections_ you need to set the **useUniversalLink** param to _NO_. Otherwise it will use the _HTTPS URL_ e.g.

```
A0SafariAuthenticator *safari = [A0SafariAuthenticator alloc] initWithLock:lock connectionName:@"google-oauth2" useUniversalLink:NO];

```

As an example a callback URL would be something like

> com.domain.MyApp://mydomain.auth0.com/ios/com.domain.MyApp/callback

I’ll update the Docs regarding the _useUniversalLink_

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 18, 2017, 3:21am UTC](https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238/3 "2017-04-18T03:21:39Z")

</div>

What’s the link for this that talks about useUniversalLink. I don’t think I recall seeing this setting in Auth0. =(

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 18, 2017, 3:25am UTC](https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238/4 "2017-04-18T03:25:54Z")

</div>

That worked. In the sample code that I downloaded from Auth0’s github, it doesn’t have “useUniversalLink” in their code. I’m assuming that this is required?? What exactly is useUniversalLink doing?

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 18, 2017, 3:26am UTC](https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238/5 "2017-04-18T03:26:32Z")

</div>

In my callback URL, I had “HTTPS” in it. So, shouldn’t it have used it??

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/ios-objective-c-callback-url-for-google/6238/6 "2018-03-02T05:53:18Z")

</div>


