[jira] [Commented] (CB-12014) Back button event listener is not called when app requests device administrator permissions.

2016-10-13 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15573193#comment-15573193
 ] 

Joe Bowser commented on CB-12014:
-

How are you requesting Device Administrator Permissions in the first place? 
Which plugin is doing this? 

> Back button event listener is not called when app requests device 
> administrator permissions.
> 
>
> Key: CB-12014
> URL: https://issues.apache.org/jira/browse/CB-12014
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Android M
>Reporter: Harsh Yadav
>  Labels: Administrator
>
> I have registered an event listener for the event "backbutton" in my hybrid 
> app. During the launch of the app it asks user to activate the Device 
> Administrator for the app if app is not the Device Administrator. If user 
> click Activates the Device Administrator, app activity comes to the top. Now 
> if user presses back button it will not call registered event listener. But 
> if app is the Device administrator then it will prompt user to activate 
> device admin, hence on pressing back button on app activity it calls 
> registered event listener.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12014) Back button event listener is not called when app requests device administrator permissions.

2016-10-14 Thread Harsh Yadav (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15575037#comment-15575037
 ] 

Harsh Yadav commented on CB-12014:
--

I am doing like this
Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);
intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, 
some_reciever_extends_DeviceAdminReceiver);
startActivityForResult(intent, 1);

> Back button event listener is not called when app requests device 
> administrator permissions.
> 
>
> Key: CB-12014
> URL: https://issues.apache.org/jira/browse/CB-12014
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Android M
>Reporter: Harsh Yadav
>  Labels: Administrator
>
> I have registered an event listener for the event "backbutton" in my hybrid 
> app. During the launch of the app it asks user to activate the Device 
> Administrator for the app if app is not the Device Administrator. If user 
> click Activates the Device Administrator, app activity comes to the top. Now 
> if user presses back button it will not call registered event listener. But 
> if app is the Device administrator then it will prompt user to activate 
> device admin, hence on pressing back button on app activity it calls 
> registered event listener.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12014) Back button event listener is not called when app requests device administrator permissions.

2016-10-14 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15576637#comment-15576637
 ] 

Joe Bowser commented on CB-12014:
-

[~harshrwr] So, this is custom code that you're adding to the activity that's 
causing this error?  If so, I'm probably going to close this as "Not 
Supported", because this isn't something that we can really fix.

> Back button event listener is not called when app requests device 
> administrator permissions.
> 
>
> Key: CB-12014
> URL: https://issues.apache.org/jira/browse/CB-12014
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Android M
>Reporter: Harsh Yadav
>  Labels: Administrator
>
> I have registered an event listener for the event "backbutton" in my hybrid 
> app. During the launch of the app it asks user to activate the Device 
> Administrator for the app if app is not the Device Administrator. If user 
> click Activates the Device Administrator, app activity comes to the top. Now 
> if user presses back button it will not call registered event listener. But 
> if app is the Device administrator then it will prompt user to activate 
> device admin, hence on pressing back button on app activity it calls 
> registered event listener.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12014) Back button event listener is not called when app requests device administrator permissions.

2016-10-14 Thread Harsh Yadav (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15577399#comment-15577399
 ] 

Harsh Yadav commented on CB-12014:
--

[~jrbowers] Is there any way to launch Activate Device Administrator activity 
using cordova?

> Back button event listener is not called when app requests device 
> administrator permissions.
> 
>
> Key: CB-12014
> URL: https://issues.apache.org/jira/browse/CB-12014
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Android M
>Reporter: Harsh Yadav
>  Labels: Administrator
>
> I have registered an event listener for the event "backbutton" in my hybrid 
> app. During the launch of the app it asks user to activate the Device 
> Administrator for the app if app is not the Device Administrator. If user 
> click Activates the Device Administrator, app activity comes to the top. Now 
> if user presses back button it will not call registered event listener. But 
> if app is the Device administrator then it will prompt user to activate 
> device admin, hence on pressing back button on app activity it calls 
> registered event listener.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12014) Back button event listener is not called when app requests device administrator permissions.

2016-10-17 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15582685#comment-15582685
 ] 

Joe Bowser commented on CB-12014:
-

I don't know who Joe Bowers is, but there's no way to launch "Activate Device 
Administrator" without writing a plugin in Cordova.  I'm going to close this, 
since this is outside Cordova's main scope.

> Back button event listener is not called when app requests device 
> administrator permissions.
> 
>
> Key: CB-12014
> URL: https://issues.apache.org/jira/browse/CB-12014
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Android M
>Reporter: Harsh Yadav
>  Labels: Administrator
>
> I have registered an event listener for the event "backbutton" in my hybrid 
> app. During the launch of the app it asks user to activate the Device 
> Administrator for the app if app is not the Device Administrator. If user 
> click Activates the Device Administrator, app activity comes to the top. Now 
> if user presses back button it will not call registered event listener. But 
> if app is the Device administrator then it will prompt user to activate 
> device admin, hence on pressing back button on app activity it calls 
> registered event listener.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org