SwiftGoogleTranslate
SwiftGoogleTranslate copied to clipboard
Add bundle id header
added X-Ios-Bundle-Identifier
header in case of restriction the API on Google Cloud side by bundle ID
Thanks for contributing to this repo.
- How do we know about
x-ios-bundle-identifier
header requirement? Is it documented anywhere? - Will
Bundle.main
work for projects where the framework is installed as a package? Shouldn't it beBundle.module
?
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