Enable/Disable Apple Push Notification from iPhone app?

You can read your app’s permissions using UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; and then performing a bitwise and operation with the different types to see which are enabled. You can also call unregisterForRemoteNotifications to disable notifications. The one thing you can’t do is turn on notifications, although you can direct the user.

Is there any way to ask permission programmatically?

Applications statically declare the permissions they require, and the Android system prompts the user for consent at the time the application is installed. Android has no mechanism for granting permissions dynamically (at run-time) because it complicates the user experience to the detriment of security. Android Developer site – System Permissions

GET_TASKS Permission Deprecated

There is reason why it is deprecated. The protection Level of android.permission.GET_TASKS has been elevated to signatureOrSystem. There is no easy and unharmful solution for that. As of LOLLIPOP, this method is no longer available to third party applications: the introduction of document-centric recents means it can leak personal information to the caller. For backwards … Read more

ActivityCompat.requestPermissions not showing dialog box

Here’s an example of using requestPermissions(): First, define the permission (as you did in your post) in the manifest, otherwise, your request will automatically be denied: <uses-permission android:name=”android.permission.READ_PHONE_STATE” /> Next, define a value to handle the permission callback, in onRequestPermissionsResult(): private final int REQUEST_PERMISSION_PHONE_STATE=1; Here’s the code to call requestPermissions(): private void showPhoneStatePermission() { int … Read more

How to give my C# app administrative rights? manifest file

There’s a “trustinfo” dangling in your snippet. Make it look like this: <?xml version=”1.0″ encoding=”utf-8″?> <asmv1:assembly manifestVersion=”1.0″ xmlns=”urn:schemas-microsoft-com:asm.v1″ xmlns:asmv1=”urn:schemas-microsoft-com:asm.v1″ xmlns:asmv2=”urn:schemas-microsoft-com:asm.v2″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> <assemblyIdentity version=”1.0.0.0″ name=”MyApplication.app”/> <trustInfo xmlns=”urn:schemas-microsoft-com:asm.v2″> <security> <requestedPrivileges xmlns=”urn:schemas-microsoft-com:asm.v3″> <requestedExecutionLevel level=”requireAdministrator” uiAccess=”false” /> </requestedPrivileges> </security> </trustInfo> </asmv1:assembly>