dapriett / nativescript-google-maps-sdk

Cross Platform Google Maps SDK for Nativescript
MIT License
244 stars 164 forks source link

Access [GMSServices openSourceLicenseInfo] #445

Closed jerrykeys closed 3 years ago

jerrykeys commented 3 years ago

According to Google documentation (https://developers.google.com/maps/documentation/ios-sdk/overview), I need to include an attribution text by making a call to [GMSServices openSourceLicenseInfo].

Attribution Requirements

If you use the Google Maps SDK for iOS in your application, you must include the attribution text as part of a legal notices section in your application. Including legal notices as an independent menu item, or as part of an "About" menu item, is recommended.

Is it possible to obtain this attribution text using this library, too? I didn't find anything.

jerrykeys commented 3 years ago

I am so dumb. Sorry. Just in case someone has the same struggle, the answer is pretty simple.

Add declare var GMSServices: any; to the .ts file and call GMSServices.openSourceLicenseInfo() wherever you want.