bitly / bitly_ios_sdk_release

Bitly SDK for iOS
MIT License
8 stars 4 forks source link

NFC usage triggers SDK callback #7

Open msmtamburro opened 1 year ago

msmtamburro commented 1 year ago

When we use NFC in our app, we often see a blank bitlyResponse come through following an NFC operation. For example:

Bitly.initialize(
  bitlyAppId, 
  deviceId: deviceId, 
  supportedDomains: supportedDomains, 
  supportedSchemes: supportedSchemes
) { [weak self] (bitlyResponse, bitlyError) in
            /// WE UNEXPECTEDLY SEE RESPONSES WITH CERTAIN NFC OPERATIONS
}

In particular, the responses always look like this:

(lldb) po bitlyResponse?.makeStringDict()
▿ Optional<String>
  - some : "[\"statusText\": \"nil\", \"bitlink\": \"nil\", \"url\": \"\", \"applink\": \"nil\", \"statusCode\": \"nil\"]"