SwiftGoogleTranslate icon indicating copy to clipboard operation
SwiftGoogleTranslate copied to clipboard

Add bundle id header

Open AlexKlim opened this issue 1 year ago • 2 comments

added X-Ios-Bundle-Identifier header in case of restriction the API on Google Cloud side by bundle ID

AlexKlim avatar Dec 28 '22 13:12 AlexKlim

Thanks for contributing to this repo.

  1. How do we know about x-ios-bundle-identifier header requirement? Is it documented anywhere?
  2. Will Bundle.main work for projects where the framework is installed as a package? Shouldn't it be Bundle.module?

maximbilan avatar Jan 01 '23 14:01 maximbilan

x-ios-bundle-identifier is undocumented. I found it here https://stackoverflow.com/questions/30340829/google-map-apis-not-working-after-adding-bundle-identifier-ios https://groups.google.com/g/google-cloud-endpoints/c/I-u3sAUU3Ts/m/KewsToMMAwAJ\

Bundle.main I have framework installed as a package and it works for me

AlexKlim avatar Jan 13 '23 15:01 AlexKlim