Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change dialog text from params #437

Open
wants to merge 2 commits into
base: v3.x
Choose a base branch
from
Open

Conversation

khayargoli
Copy link

@khayargoli khayargoli commented Dec 27, 2019

hi @petermetz

I have created this pull request so that users can change the location access dialog box 's title and message by passing params during the installation of your plugin. I see many users wanted this change so I thought I could help with it.

Cordova Usage:
cordova plugin add https://github.com/petermetz/cordova-plugin-ibeacon.git --variable LOCATION_ACCESS_TITLE="This app needs location access" --variable LOCATION_ACCESS_DESCRIPTION="Please grant location access so this app can detect beacons."

Phonegap Usage:
Add these lines to config.xml file of your project:

<plugin name="com.unarin.cordova.beacon" spec="3.8.1" />
        <variable name="LOCATION_ACCESS_TITLE" value="This app needs location access" />
        <variable name="LOCATION_ACCESS_DESCRIPTION" value="Please grant location access so this app can detect beacons." />
</plugin>

Specifying empty LOCATION_ACCESS_TITLE = "" or LOCATION_ACCESS_DESCRIPTION ="" string will use the default title and message.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant