Git Product home page Git Product logo

cordova-open-native-settings's People

Contributors

abhijitsinghbsb avatar amatakasap avatar bigcreate avatar cyrilf avatar deefactorial avatar emcniece avatar goinnn avatar guyromb avatar j4cku avatar jakub-swierk avatar mriegler avatar nickfallon avatar qligier avatar rastafan avatar selahssea avatar soub4i avatar timbru31 avatar xawery94 avatar z1ad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-open-native-settings's Issues

Doesn't work on iOS 10

Native settings won't open on iOS 10.
According to some discussions in stackoverflow seems like apple disabled the option to open native settings programmatically in iOS 10 (except for app settings).

I will keep on tracking regarding this matter and do further investigation soon.

Open notification settings for the app, Android

Is it possible to Open the system notification settings for the app?
With application_details you have only access to the App-Info Page, how can I access the App-Notifications page directly?

in iOS ,it is always redirecting to my application in settings.

In android it is working fine.I want to open iTunes and Appstore page in settings.As mentioned in the plugin we need to give "store" parameter in open function of this plugin.we are using this in our ionic project with this( [https://ionicframework.com/docs/native/open-native-settings/]).It is always redirecting to yobeactive applications in settings and not to any specific page.
This is the method we have written for this.

this.openNativeSettings.open("store")
     .then(res => {
       console.log("\n\n res: ", res);
     })
     .catch(err => {
       console.log("\n\n Err: ", err);
     });

IOS/Android: open location setting for particular app

Hi Guyromb,
Thanks for your great job there. I wonder if there is a way to open the location setting for a particular app. The actual path in devices is like following.
IOS: Settings > Privacy > Location Services > OurApp
OR: Settings > OurApp > Location
Android: Settings > Apps > Application manager > OurApp > Permissions

Thanks in advance!

Update of release

Will you create an official 1.5.0 release.

image

Currently github only shows an old release

Open with capacitor

Hey, I cannot use it with capacitor

Usage:

install:

npm install cordova-open-native-settings
npm install @ionic-native/open-native-settings
import { OpenNativeSettings } from '@ionic-native/open-native-settings';

...
document.addEventListener('deviceready', function () {
  OpenNativeSettings.open('wifi');
});
...

Error

Native: tried calling OpenNativeSettings.open, but the OpenNativeSettings plugin is not installed.
Install the OpenNativeSettings plugin: 'ionic cordova plugin add cordova-open-native-settings'

Any ideas?

Android Manifest File issue

Hi,
I am getting an error such as
com.phonegap.plugins.nativesettings.NativeSettings that is not assignable to android.app.activity.

Please advise as what is the change that needs to be done.

Regards,
Jagan

PGB Android unable to load plugin

Not sure what changes you've made but PGB is not able to pull your plugin from npm. This was working. I should also add that this works with the PGB iOS builds.

<plugin name="cordova-open-native-settings" spec="~1.5" />
<preference name="android-build-tool" value="gradle" />
<preference name="phonegap-version" value="cli-7.1.0" />

"plugman-151 install --platform android --project --plugin Cordova-open-native-settings@~1.5 --nohooks=.": Fetching plugin "Cordova-open-native-settings@~1.5" via npm
Failed to fetch plugin Cordova-open-native-settings@~1.5 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Not found : Cordova-open-native-settings

Getting error in ionic 3 after adding the plugin

Getting error in build after adding the plugin in ionic 3

[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ':app:compileDebugJavaWithJavac'.
[cordova] > Compilation failed; see the compiler error output for details.
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 5s
[cordova] :app:compileDebugJavaWithJavac FAILED
[cordova] 35 actionable tasks: 5 executed, 30 up-to-date
[cordova]
[cordova] D:\smoresup\smoresup_4>if "1" == "0" goto mainEnd
[cordova]
[cordova] D:\smoresup\smoresup_4>rem Set variable GRADLE_EXIT_CONSOLE if you need the script return code instead of
[cordova]
[cordova] D:\smoresup\smoresup_4>rem the cmd.exe /c return code!
[cordova]
[cordova] D:\smoresup\smoresup_4>if not "" == "" exit 1
[cordova]
[cordova] D:\smoresup\smoresup_4>exit /b 1
[cordova] Command finished with error code 1: cmd /s /c "D:\smoresup\smoresup_4\platforms\android\gradlew.bat cdvBuildDebug -b D:\smoresup\smoresup_4\platforms\android\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m"
[cordova] cmd: Command failed with exit code 1 Error output:
[cordova] D:\smoresup\smoresup_4\platforms\android\app\src\main\java\com\phonegap\plugins\nativesettings\NativeSettings.java:67: error: cannot find symbol
[cordova] } else */ if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
[cordova] ^
[cordova] symbol: variable P
[cordova] location: class VERSION_CODES
[cordova] D:\smoresup\smoresup_4\platforms\android\app\src\main\java\com\phonegap\plugins\nativesettings\NativeSettings.java:68: error: cannot find symbol
[cordova] intent = new Intent(android.provider.Settings.ACTION_FINGERPRINT_ENROLL);
[cordova] ^
[cordova] symbol: variable ACTION_FINGERPRINT_ENROLL
[cordova] location: class Settings
[cordova] 2 errors
[cordova]
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ':app:compileDebugJavaWithJavac'.
[cordova] > Compilation failed; see the compiler error output for details.
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 5s
[cordova] Error: cmd: Command failed with exit code 1 Error output:
[cordova] D:\smoresup\smoresup_4\platforms\android\app\src\main\java\com\phonegap\plugins\nativesettings\NativeSettings.java:67: error: cannot find symbol
[cordova] } else */ if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
[cordova] ^
[cordova] symbol: variable P
[cordova] location: class VERSION_CODES
[cordova] D:\smoresup\smoresup_4\platforms\android\app\src\main\java\com\phonegap\plugins\nativesettings\NativeSettings.java:68: error: cannot find symbol
[cordova] intent = new Intent(android.provider.Settings.ACTION_FINGERPRINT_ENROLL);
[cordova] ^
[cordova] symbol: variable ACTION_FINGERPRINT_ENROLL
[cordova] location: class Settings
[cordova] 2 errors
[cordova]
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] Execution failed for task ':app:compileDebugJavaWithJavac'.
[cordova] > Compilation failed; see the compiler error output for details.
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 5s
[cordova] at ChildProcess.whenDone (D:\smoresup\smoresup_4\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
[cordova] at ChildProcess.emit (events.js:198:13)
[cordova] at maybeClose (internal/child_process.js:982:16)
[cordova] at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

Ionic:

ionic (Ionic CLI) : 4.11.0 (C:\Users\davidvinoth.jayachan\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.4
Cordova Plugins : not available

System:

Android SDK Tools : 26.1.1 (C:\Users\davidvinoth.jayachan\AppData\Local\Android\Sdk)
NodeJS : v10.21.0 (C:\Program Files\nodejs\node.exe)
npm : 6.14.9
OS : Windows 8.1

I tried changing sdk version from 27 to 29 in build.gradle file but build still getting failed
defaultBuildToolsVersion="29.0.3" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 5.1
defaultTargetSdkVersion=28 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=29 //Integer - We ALWAYS compile with the latest by default

BSF Cordova Ecosystem Crowdfunding Plan

Hello everyone,

I'm Jason.z, the founder of BSF.

We've noticed that this project has remained very popular in the past.

However, unfortunately, it seems that this project has not been maintained for some time,

which is unfortunate for users who want to continue using and supporting the project.

Based on this, BSF has initiated the Cordova Ecosystem Crowdfunding Plan ,

with the main purpose of addressing the upgrading and maintenance of old Cordova projects,

as well as compatibility and adaptability for new platforms.

You can learn more about it by clicking on this link.

So, if you feel that this project needs continued upgrading and maintenance,

please let us know through voting.

We will decide whether to launch a crowdfunding plan for this project based on the voting results and the recruitment of maintainers,

as well as the subsequent development and maintenance plans.

If you are willing to be a long-term maintainer of the project, you can also contact us.

Of course, if you do not agree with the operating model of BSF Software Foundation,

or if you are a maintenance team for this project and believe that this ISSUE infringes and damages your rights,

you can also delete this ISSUE.

We sincerely apologize for any inconvenience this may cause.

BSF is our bold attempt and exploration of the sustainable development of software projects.

We hope to contribute to the development of software projects through the power of the community!

Open notification access settings

I'm not sure about IOS, but for Android this screen allows the user to allow notification access for applications, which is vital for applications with logic that depends on reading notifications.
Looking in the code, I see the 'notification_listner' should do this, but it is commented. Why? Was it not working anymore? Would it be possible to reenable this functionality?

Missing one property for Android settings

I am asking for adding missing value to readme, because I had to search for it in reported issues and it would be worth having it in the documentation.

Please add this one notification_id for Android. Tested and it's works

Notification setting (notification_id) not working for iOS

I'm using openNativeSettings.open('notification_id') to open the notification settings page for my app.

This works on Android but doesn't work for on iOS. I'm running

  • iOS 12.1.4.
  • cordova-open-native-settings 1.5.2

I took a look at the source code and read #21.

It seems to me that for this to work on iOS we need to append &path=APP_BUNDLE_ID to the url. But I don't see this is happening in the source code.

Thanks for the help!

Ionic/Cordova install problems

I'm experiencing issues with installing this plugin via CLI:

# ionic cordova plugin add https://github.com/guyromb/Cordova-open-native-settings.git
> cordova plugin add https://github.com/guyromb/Cordova-open-native-settings.git --save
✖ Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova plugin add https://github.com/guyromb/Cordova-open-native-settings.git -... (exit code 1):

        Error: Failed to fetch plugin https://github.com/guyromb/Cordova-open-native-settings.git via registry.
        Probably this is either a connection problem, or plugin spec is incorrect.
        Check your connection and plugin name/version/URL.
        Failed to get absolute path to installed module
# cordova plugin add https://github.com/guyromb/Cordova-open-native-settings.git --save
Error: Failed to fetch plugin https://github.com/guyromb/Cordova-open-native-settings.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module

System Info:

# ionic info

global packages:

    @ionic/cli-utils : 1.3.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.3.0

local packages:

    @ionic/app-scripts              : 1.3.4
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : none
    Ionic Framework                 : ionic-angular 3.1.0

System:

    Node       : v7.9.0
    OS         : Linux 4.8
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed

Any ideas?

Android "Do not disturb"

Hi,
any chance to open "Do not disturb" settings BUT in ANDROID?

Even better would be "Allow exception"

And even better "Priority App Notifications" ...

Thanks

IOS 15 Errors

Anyone have success with IOS 15?

I import and follow the instructions per Ionic docs, but whenever I visit a page that contains the OpenNativeSettings.open('settings') handler, XCode logs print:
⚡️ [error] - {} ⚡️ [error] - {} ⚡️ [error] - {}

That's unfortunately all I have to go off of at the moment.

Class not found for android

Cordova native settings is not working properly on Android Ionic Apps. When i call any of the page. It throws an error "Class Not Found".
Can anyone have a solution for this?

Cordova-Plugins Update Error

I have used the older version cordova-plugins

Now i have update the all cordova-plugins in single command line using like

cordova-check-plugins --update=auto --force

But use the command line to install after Error showing:

plugin: cordova-open-native-settings
source: npm://https://github.com/guyromb/Cordova-open-native-settings.git
installed version: UNKNOWN
remote version: UNKNOWN
error: Failed to check npm registry for plugin 'cordova-open-native-settings': E
rror: Command failed: npm view "https://github.com/guyromb/Cordova-open-native-s
ettings.git" version
npm ERR! Invalid package.json

How to solve the error and give the cordova-plugins update url.

Possible to add "Notification" ?

Hi, thanks for this plugin.
Would be possible to add "application_notifications" to the ANDROID options?
I'd need to point my user to change some application notification options.
So far the closest I found is "application_details" but a further click is required to see "Notifications"
Thanks

iOS app gets rejected because of use of "prefs:root" or "App-Prefs:root" private API's.

5.0.0 Binary Rejected Aug 31, 2018
Guideline 2.5.1 - Performance - Software Requirements Your app uses the "prefs:root=" non-public URL scheme, which is a private entity.
Here is their suggested solution:
Guideline 2.5.1 - Performance - Software Requirements

Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.

Next Steps

To resolve this issue, please revise your app to provide the associated functionality using public APIs or remove the functionality using the "prefs:root" or "App-Prefs:root" URL scheme.

If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.

So any one please help us to resolve this issue

Opening 'biometric' settings on Android is crashing application

Hello,I installed the plugin to open biometrics (touchID/faceID) device settings from an Angular+ionic App. On IOS, everything works smooth by using the 'touch' option. For Android, however, I experienced a couple of issues:

  • 'security' option does not always redirect to the correct settings section (ex. privacy)
  • 'biometric' options is even making App crashing on some devices.
    Have you ever experienced something like this and/or know what the issue could be?

Tech stack:
"@ionic/angular": "^6.0.9"
"cordova-open-native-settings": "^1.5.5"
"@awesome-cordova-plugins/open-native-settings": "^5.37.3"

Open location services not working on iOS 12

I tried to open location services in iOS 12 using

open("location")
open("locations")

but none of them works, it opens general settings.
I'm using the ionic 3 wrapper with the 1.5.2 version of the plugin with cordova 8.
Thanks!

Callback to closed settings?

Any callback to detect if the user close the settings screen? I need this to refresh the application after the user chance the settings. Thanks

Check for existing settings?

Hi and thanks for this easy to use plugin.

Question 1:
Is it possible to directly access/open a child setting element? Could be easier for the user to be redirected exactly where he has to go; no needs to scroll and search for the right setting (= better UX).
For exemple I'de like to open: Setting > Display > Full screen Apps

Capture d’écran 2021-09-21 à 18 51 15

Question 2:
Is it possible to check if a specific setting exist on the device before redirecting the user on it?
Same exemple with Settings > Display > Full Screen Apps.
This option exists only on some device or Android OS. Would it be possible to detect this from our Cordova app?

Thanks!

App Crashing in IOS

I have used this plugin in IOS, Triggered this plugin when the app is initialised but it seems to be opening the settings page and crashing immediately.

I have listed the errors as well below.
: Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=}
Jun 28 05:00:57 TechCartios(Foundation)[11181] : -[NSXPCConnection valueForEntitlement:]: Error getting value for entitlement 'com.apple.private.dt.xctest.internal-client': Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"

Doesn't work in IOS 11

Cordova native settings is not working properly on IOS 11. When we call any of the page. It is just opening default/general settings page or taking us to previously opened settings page. Cam anyone have a solution for this?

Cordova-plugin-compat Installation problem

I have install the [email protected] at command promt

And [email protected] installed after not installing the cordova-plugin-camera

I have seen the error for,

E:\XCCLive>cordova plugin add cordova-plugin-camera
Installing "cordova-plugin-camera" for android
Failed to install 'cordova-plugin-camera': CordovaError: Version of installed pl
ugin: "[email protected]" does not satisfy dependency plugin requireme
nt "cordova-plugin-compat@^1.1.0". Try --force to use installed plugin as depend
ency.
    at C:\Users\administrator.WBCDNS.000\AppData\Roaming\npm\node_modules\cordov
a\node_modules\cordova-lib\src\plugman\install.js:581:33
    at _fulfilled (C:\Users\administrator.WBCDNS.000\AppData\Roaming\npm\node_mo
dules\cordova\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\administrator.WBCDNS.000\AppData\Roam
ing\npm\node_modules\cordova\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\administrator.WBCDNS.000\AppDat
a\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
    at C:\Users\administrator.WBCDNS.000\AppData\Roaming\npm\node_modules\cordov
a\node_modules\q\q.js:509:49
    at flush (C:\Users\administrator.WBCDNS.000\AppData\Roaming\npm\node_modules
\cordova\node_modules\q\q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
Error: Version of installed plugin: "[email protected]" does not satis
fy dependency plugin requirement "cordova-plugin-compat@^1.1.0". Try --force to
use installed plugin as dependency.

How to install the [email protected] & cordova-plugin-camera for properly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.