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

Feature Request : Add pure promptLocation support on Cordova #8

Open
Aarbel opened this issue Aug 13, 2019 · 1 comment
Open

Feature Request : Add pure promptLocation support on Cordova #8

Aarbel opened this issue Aug 13, 2019 · 1 comment

Comments

@Aarbel
Copy link

Aarbel commented Aug 13, 2019

https://github.com/OneSignal/OneSignal-Cordova-Example/blob/9cffbbd6399899d5c25752f83fe8afca17e10137/www/js/index.js#L131-L137

promptLocation needs advanced Xcode configs which are not compatible with Cordova workflow, do you think to enhance this technical brake soon ?

Thanks a lot ;)

@jkasten2
Copy link
Contributor

I haven't tested but it might be possible to add the iOS ones with something like the following in your config.xml.

<edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
    <string>need location access to find things nearby</string>
</edit-config>

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

No branches or pull requests

2 participants