spencerccf / app_settings

Flutter plugin for accessing app phone settings for iOS and Android
MIT License
336 stars 125 forks source link

how to catch back from app setting to flutter #155

Closed rifafauzi97 closed 1 year ago

rifafauzi97 commented 2 years ago

Hi.

How to catch back from app setting to flutter?

I tried this code not work.

print('Test 1');
await AppSettings.openBluetoothSettings(asAnotherTask: true);
print('Test 2');

Because when it's open bluetooth setting, the second print is printed. I expect the second print should be printed after back to flutter.

Any option to catch back from app setting to flutter?

plinkos commented 2 years ago

I'll create a PR and add the FlutterResult return to both iOS and Android native side code. This will allow you to determine if the response is done/completed.

Sebastjan-Vuga commented 1 year ago

Hi @plinkos,

Any updates on this matter or how we might catch the "return to the app"?

Thanks!

plinkos commented 1 year ago

Apologies for the delay. I should have this functionality completed today.

plinkos commented 1 year ago

Done... new version: 4.2.0 is now available in pub.dev: https://pub.dev/packages/app_settings/

chihuy105 commented 1 year ago

It's not working in IOS 16 and Android 28