Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to open/install a config file in iOS

$
0
0

I have a React Native app in Android and iOS. The app downloads a profile configuration file (filename.config) which I download from an API and open which prompts the user to install.

On android I achieved this using actionViewIntent;

 RNFetchBlob.android.actionViewIntent(dirs.DocumentDir +'/passpoint.config.xml', 'application/x-wifi-config')      .then(() => { console.log('File install started...') })      .catch((err) => { err });

And the above works fine on Android.

But on iOS, I have the file downloaded but not sure how I can invoke the installation as I do on Android.I tried using;

 RNFetchBlob.ios.openDocument(resp.data);

But this does not work as I expect as it only shows me a screen with a white background and the filename centered on the screen.

Any help is appreciated.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>