You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/06/19 12:38:04 UTC

[GitHub] [cordova-android] breautek commented on issue #749: How to enable notifications on lock screen & led light by default ?

breautek commented on issue #749: How to enable notifications on lock screen & led light by default ?
URL: https://github.com/apache/cordova-android/issues/749#issuecomment-503542535
 
 
   >  ... in my device application parameters.
   
   Not exactly sure what you mean by this, please do clarify. If you mean you need to modify the `AndroidManifest.xml` file then you can use the `<edit-config>` tags in your `config.xml` to target and modify the `AndroidManifest.xml`. The documentation for `<edit-config>` can be found [here](https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#edit-config). Note that it's in the plugin documentation, but it can be used in your config.xml as well.
   
   If you mean you want to programmatically modify/set default notification settings in your app, I'm afraid this isn't possible and defeats the purpose of giving user control over their notification settings. Only the user can choose the notification mode of an app. At most you can probably find a third-party plugin that allows you to launch the android settings programmatically so you can provide a "Notification Settings" button in your app. A quick plugin search I found [cordova-open-native-settings](https://github.com/guyromb/Cordova-open-native-settings), but I don't vouch for the plugin nor have I ever used it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org