28
Views
4
Comments
[Settings Plugin] Open Settings not working for iOS 18
settings-plugin
Mobile icon
Forge asset by Wouter Baeten
Application Type
Mobile

This is not a question but rather a note regarding an issue we recently encountered when using this component and the solution we implemented.

This component references a GitHub repository where the current code uses a deprecated method: UIApplication.openURL(_:)

Apple documentation: https://developer.apple.com/documentation/uikit/uiapplication/openurl(_:)

When building the app with MABS 11, this method no longer works on iOS 18.

The recommended fix, as per Apple guidelines, has already been proposed in the following pull request: https://github.com/guyromb/cordova-open-native-settings/pull/72

However, the PR has not been merged into the repository used by this component.

To resolve this, we forked the repository, applied the fix, and confirmed that it works across multiple iOS versions, including iOS 18.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Fábio,

I think it is unfortunate that you decided to fork the component to get it fixed.

Both of you are OutSystems staff, I am pretty sure Wouter would have added you to the team, if you would send out that request.

Regards,

Daniel

2021-04-09 11-42-43
assif_tiger
 
MVP

Dear Fabio,
At very first thanks for highlighting this.

Since the fixed version hasn't been merged into the master branch by the owner yet, I localized the plugin as a resource for pull #72 and published version as  1.0.2. 
It has been tested on iOS 18.3.2 and Android 14.

Thanks!

UserImage.jpg
Arshi Khan

@assif_tiger Dear Assif 
We tried to implement using plugin as resource option - however it didnt help redirect to security settings and when security or settings as passed as input - it redirects to enable pin instead  in IOS.
Also with resource as solution - for some reason Android flow stops working - which works well when we are not using resource. Can you please advice.
We tried with IOS 18 and Android 14.

2021-04-09 11-42-43
assif_tiger
 
MVP

Dear @Arshi Khan ,

I would appreciate it if you could open a new forum thread for your specific issue under the same component, as this one was already addressed back in April. 

 - Add MABS Version 
-  Add version you forked or more details about the zip version used 
- If possible any logs
- Iphone Device Details & similarly Android Device details 

This helps to reproduce the same & fix accordingly.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.