# Can’t make a 2nd app work, 1st one works great

**URL:** <https://developer.squareup.com/forums/t/can-t-make-a-2nd-app-work-1st-one-works-great/6412>\
**Category:** Site Feedback\
**Tags:** point-of-sale-api, sdk\
**Created:** [July 6, 2022, 9:52pm UTC](https://developer.squareup.com/forums/t/can-t-make-a-2nd-app-work-1st-one-works-great/6412 "2022-07-06T21:52:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Dr.Craig](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Dr.Craig](https://developer.squareup.com/forums/u/Dr.Craig)\
**Post date:** [July 9, 2022, 1:01pm UTC](https://developer.squareup.com/forums/t/can-t-make-a-2nd-app-work-1st-one-works-great/6412/8 "2022-07-09T13:01:41Z")

</div>

Bryan - I neglected to insert the AppDelegate for POSSDKTest2 … here is the first part of it which will show a console log if the callback happens:  
//  
// AppDelegate.swift  
// POSSDKTest2  
//  
// Created by Dr Craig E Curphey on 2022-06-14.  
//

//======= Square variables ======  
var squareTokenID = “Who cares - let it fail I just want a callback!” //for Welcome  
//set this to “” after i get square working  
var squarePatientID = “”  
var squareGeneratedTransID = “”  
var squareGeneratedClientID = “”  
var squareAmountReturned :Float = 0.00  
var squareCurrencyType = “”  
var squareCashOrCard = “”  
var squareCardBrand = “”  
var squareLast4 = “”  
var squareTransFailed = false  
var squareTransFailureReason = “”  
var squareUserCancelled = false  
var squareTransDone = false  
var TodaysFee: Float = 0.00

import UIKit  
import SquarePointOfSaleSDK

@main  
class AppDelegate: UIResponder, UIApplicationDelegate {

```
var window: UIWindow?
var testing = true

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
{
    print ("AppDel Got to AppDelegate - woo-hoooo - callback happened!") //proves that we got call back
    
    guard SCCAPIResponse.isSquareResponse(url) else {
       // if let error = response.error {
        print("AppDel Callback failure")
        return false
    }

   // remaining code only gets executed on successful callback from Square app
    print ("AppDel Successful-1 Square recognized!")

```

---

_[View the full topic](https://developer.squareup.com/forums/t/can-t-make-a-2nd-app-work-1st-one-works-great/6412)._
