OneSignalDevelopers / OneSignal-Cordova-Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request : Add pure `promptLocation` support on Cordova

Aarbel opened this issue · comments

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 ;)

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>