LoginSignup
2
0

More than 3 years have passed since last update.

ionicで現在地取得時に出るアラートのテキストを変更

Last updated at Posted at 2019-06-19

背景

ionicを利用して作成したiosアプリにプラグインを利用してgoogleMAPを表示させています。

利用したプラグインは以下の2つです。

  • @ionic-native/google-maps
  • cordova-plugin-googlemaps

アプリではユーザーの現在地情報も利用しています。
情報取得時にはユーザー側にアラートで「現在地を利用して良いか?」という趣旨のテキスト(英語)が表示されていました。
ところが、appleの審査で「日本人読めないだろ!」という指摘を流暢な英語で受けたので直します。

解決

config.xml の platform name="ios" 内に下記を追加します。
xcodeからも同様に治せるはずです。

config.xml
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
    <string>お近くのお店を探す為に現在地を使用させて頂きます</string>
</edit-config>

というメモでした。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0