Expo Intent Launcher

I have written this code in Expo but doesn’t work in IOS device.

import * as IntentLauncher from 'expo-intent-launcher';
 
 // Open location settings
 IntentLauncher.startActivityAsync(IntentLauncher.ACTION_LOCATION_SOURCE_SETTINGS);

Per the documentation and also listed on the package source README.md, this API is for Android only. There is no such thing as an Intent on iOS, so there is no equivalent API, and it doesn’t make sense for iOS.

The :white_check_mark: box in iOS on the Expo Documentation indicates that it won’t crash (it’s a no-op for iOS).


For iOS, you can try to open the “Privacy > Location” url, as listed here:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.