Closed Holbanner closed 6 years ago
From your description, I'm not quite clear on what the issue is.
Once the user has chosen a preferred app, the remembered choice can be cleared by calling appSelection.userChoice.clear().
Are you saying calling this function on Android isn't clearing the user choice?
Hi, Not really what i meant. I'll try to be a bit more clear. I mean that in most case when you select a default app be it to open a map or to open a calendar or to browse the web, if the user feels like changing app he can go to Android/Ios setting page -> go to either a page that is general for default apps or go to a specific app and then choose what default app opens what.
But when i do that with apps using this plugin, I can't manage this setting.
From your answer I kind of understand that the plugin doesn't actually switch the native settings? But rather create a local setting, right?
Yes, the preference is stored locally within the app that contains the plugin.
I don't know of any native Android/iOS API to enable you to set/clear the default app used by the OS from a 3rd app - I don't think it can be done.
Right, my bad. I misunderstood and thought that the dialog was the native setting dialog.
Kind of how the plug-in open-native-setting just opens the settings page of your phone. From memory it could more or less target a precise setting page so the user could manually switch autorisations for exemple
Le mar. 3 juil. 2018 à 13:01, Dave Alden notifications@github.com a écrit :
Yes, the preference is stored locally within the app that contains the plugin.
I don't know of any native Android/iOS API to enable you to set/clear the default app used by the OS from a 3rd app - I don't think it can be done.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dpa99c/phonegap-launch-navigator/issues/196#issuecomment-402110393, or mute the thread https://github.com/notifications/unsubscribe-auth/AVjB2YRTrfwXm3olSZedyM1ErqkZIIZXks5uC08VgaJpZM4VAkL6 .
From memory it could more or less target a precise setting page so the user could manually switch autorisations for exemple
It could, but this requires manual user action, whereas the current implementation allows the preference to be controlled from within the app that's using the plugin: a simple button to clear their current preference. Therefore, I don't see a good reason to switch over to using native settings where the user needs to manually set the preference. On that basis, I will close this as an issue.
Agreed
Le mar. 3 juil. 2018 à 13:13, Dave Alden notifications@github.com a écrit :
From memory it could more or less target a precise setting page so the user could manually switch autorisations for exemple
It could, but this requires manual user action, whereas the current implementation allows the preference to be controlled from within the app that's using the plugin: a simple button to clear their current preference. Therefore, I don't see a good reason to switch over to using native settings where the user needs to manually set the preference. On that basis, I will close this as an issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dpa99c/phonegap-launch-navigator/issues/196#issuecomment-402114955, or mute the thread https://github.com/notifications/unsubscribe-auth/AVjB2XXm8aPeBdbZMZupOeBuEyeTOAKWks5uC1H3gaJpZM4VAkL6 .
I'm submitting a ... (check one with "x"):
Bug report
Current behavior:
When selecting to remember the choice of default app, it is not possible to reset that choice from android parameters afterward.
I've tried opening navigation apps from other apps. When prompted to select the navigation app I choose one then selected to remember my choice. After that I could reset that choice by going paramters->applications->{waze/maps/uber/...}->defaults-->remove defaults. Then when relaunching Navigation from another app i was prompted again with the choice. When doing this after choosing to remember with the plugin there is no defaults in the navigation app Expected behavior:
Once the default navigation app is remembered it should be resetable through parameters Steps to reproduce:
On any project using launch navigator, start a navigation, select an app, select remember your choice and try to reset that choice so you can reselect it later. Environment information
Runtime issue
If using an [Ionic Native Typescript wrapper]() for this plugin:
Ionic environment info cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2 ionic (Ionic CLI) : 3.20.0
global packages:
local packages:
System:
Environment Variables:
Misc:
Other information:
Feature request
Documentation issue